Trait fluxion::message::Message

source ·
pub trait Message: Send + Sync + 'static {
    type Response: Send + Sync + 'static;
}
Expand description

Message

This trait is used to mark Messages. Notifications are just Messages with a response type of (). By default, all Messages and their responses must be Send + Sync + ['static].

Required Associated Types§

source

type Response: Send + Sync + 'static

The message’s response

Implementations on Foreign Types§

source§

impl Message for ()

§

type Response = ()

Implementors§