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]
fn new<F>(f: F) -> Self where
F: FnOnce(&Client<T>, &T) -> Option<TailFuture> + Send + 'static,
F: FnOnce(&Client<T>, &T) -> Option<TailFuture> + Send + 'static,
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.
fn build_terminator() -> Self
Construct a new message which when processed by the event loop will terminate the event loop. This will be the graceful exit condition.