pub trait RuntimeMessage: Message {
    // Provided method
    fn subscribe<R>(callback: impl FnMut(Self) -> R + 'static) -> Listener
       where R: CallbackReturn { ... }
}
Expand description

Implemented by all messages sent from the runtime.

Provided Methods§

source

fn subscribe<R>(callback: impl FnMut(Self) -> R + 'static) -> Listener
where R: CallbackReturn,

Subscribes to this Message. Wrapper around self::subscribe.

Object Safety§

This trait is not object safe.

Implementors§