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

Implemented by all messages sent from the runtime.

Provided Methods§

source

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

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

Object Safety§

This trait is not object safe.

Implementors§