Trait ambient_api_core::message::RuntimeMessage
source · 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§
sourcefn subscribe<R: CallbackReturn>(
callback: impl FnMut(Self) -> R + 'static
) -> Listener
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.