Struct futures_glib::MainLoop [] [src]

pub struct MainLoop { /* fields omitted */ }

Methods

impl MainLoop
[src]

[src]

Creates a new event loop using the provided context.

If None is provided then the default context will be used.

[src]

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.

[src]

Stops a MainLoop from running. Any calls to run for the loop will return.

Note that sources that have already been dispatched when quit is called will still be executed.

[src]

Checks to see if the main loop is currently being run via run.

[src]

Returns the context of this loop.

Trait Implementations

impl Clone for MainLoop
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for MainLoop
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for MainLoop

impl !Sync for MainLoop