Struct glib::Source [−][src]
pub struct Source(_);
Methods
impl Source
[src]
impl Source
pub fn add_child_source(&self, child_source: &Source)
[src]
pub fn add_child_source(&self, child_source: &Source)
pub fn attach<'a, P: Into<Option<&'a MainContext>>>(&self, context: P) -> u32
[src]
pub fn attach<'a, P: Into<Option<&'a MainContext>>>(&self, context: P) -> u32
pub fn destroy(&self)
[src]
pub fn destroy(&self)
pub fn get_can_recurse(&self) -> bool
[src]
pub fn get_can_recurse(&self) -> bool
pub fn get_context(&self) -> Option<MainContext>
[src]
pub fn get_context(&self) -> Option<MainContext>
pub fn get_id(&self) -> u32
[src]
pub fn get_id(&self) -> u32
pub fn get_name(&self) -> Option<String>
[src]
pub fn get_name(&self) -> Option<String>
pub fn get_priority(&self) -> i32
[src]
pub fn get_priority(&self) -> i32
pub fn get_ready_time(&self) -> i64
[src]
pub fn get_ready_time(&self) -> i64
pub fn get_time(&self) -> i64
[src]
pub fn get_time(&self) -> i64
pub fn is_destroyed(&self) -> bool
[src]
pub fn is_destroyed(&self) -> bool
pub fn remove_child_source(&self, child_source: &Source)
[src]
pub fn remove_child_source(&self, child_source: &Source)
pub fn remove(tag: u32) -> bool
[src]
pub fn remove(tag: u32) -> bool
Trait Implementations
impl Debug for Source
[src]
impl Debug for Source
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Source
[src]
impl PartialEq for Source
fn eq(&self, other: &Source) -> bool
[src]
fn eq(&self, other: &Source) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Source) -> bool
[src]
fn ne(&self, other: &Source) -> bool
This method tests for !=
.
impl Eq for Source
[src]
impl Eq for Source
impl PartialOrd for Source
[src]
impl PartialOrd for Source
fn partial_cmp(&self, other: &Source) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Source) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Source) -> bool
[src]
fn lt(&self, other: &Source) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Source) -> bool
[src]
fn le(&self, other: &Source) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Source) -> bool
[src]
fn gt(&self, other: &Source) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Source) -> bool
[src]
fn ge(&self, other: &Source) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Source
[src]
impl Ord for Source
fn cmp(&self, other: &Source) -> Ordering
[src]
fn cmp(&self, other: &Source) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for Source
[src]
impl Hash for Source
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for Source
[src]
impl Clone for Source
fn clone(&self) -> Source
[src]
fn clone(&self) -> Source
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl StaticType for Source
[src]
impl StaticType for Source
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl Send for Source
[src]
impl Send for Source
impl Sync for Source
[src]
impl Sync for Source