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

Defines what an actor will receive as its message, and with what it should respond.

Required Associated Types§

source

type Response: Send + Sync + 'static

response an actor should give when it receives this message. If no response is required, use ().

Object Safety§

This trait is not object safe.

Implementors§