Trait Message

Source
pub trait Message:
    Send
    + Sync
    + Any
    + 'static {
    type Reply: Send;
}
Expand description

Any type that will be sent between services needs to implement this trait.

Sending a Reply is optional (use type Reply = () if you will not send a reply).

Required Associated Types§

Implementations on Foreign Types§

Source§

impl<M: Message> Message for Vec<M>

Blanket implementation of Message for any Vec. You lose the return value.

Implementors§