Skip to main content

CommunicationMessage

Trait CommunicationMessage 

Source
pub trait CommunicationMessage:
    Serialize
    + for<'de> Deserialize<'de>
    + Send
    + Sync { }
Expand description

Trait for messages that can be serialized for communication

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> CommunicationMessage for T
where T: Serialize + for<'de> Deserialize<'de> + Send + Sync,