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) -> Listenerwhere R: CallbackReturn,

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

Implementors§