Struct glib::MainLoop [−][src]
pub struct MainLoop(_);
Expand description
The GMainLoop struct is an opaque data type
representing the main event loop of a GLib or GTK+ application.
Implementations
Creates a new MainLoop structure.
context
a MainContext (if None, the default context will be used).
is_running
set to true to indicate that the loop is running. This
is not very important since calling run() will set this to
true anyway.
Returns
a new MainLoop.
Runs a main loop until quit() is called on the loop.
If this is called for the thread of the loop’s MainContext,
it will process events from the loop, otherwise it will
simply wait.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Returns the type identifier of Self.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue clone of self.
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,