Skip to main content

RemoteMessage

Trait RemoteMessage 

Source
pub trait RemoteMessage
where Self: Message + Send + Serialize,
{ type Serializer: CustomSerialization; const IDENTIFIER: &'static str; // Required methods fn get_serializer(&self) -> Box<Self::Serializer>; fn generate_serializer() -> Box<Self::Serializer>; fn set_source(&mut self, source: Addr<NetworkInterface>); // Provided method fn get_identifier(&self) -> &str { ... } }
Expand description

Helper Trait to prepare messages to be sent over the network

Required Associated Constants§

Source

const IDENTIFIER: &'static str

Required Associated Types§

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§