Struct safe_core::event_loop::CoreMsg[][src]

pub struct CoreMsg<T>(_);

The message format that core event loop understands.

Methods

impl<T> CoreMsg<T>
[src]

Construct a new message to ask core event loop to do something. If the return value of the given closure is optionally a future, it will be registered in the event loop.

Construct a new message which when processed by the event loop will terminate the event loop. This will be the graceful exit condition.

Auto Trait Implementations

impl<T> Send for CoreMsg<T>

impl<T> !Sync for CoreMsg<T>