Trait NetworkContent

Source
pub trait NetworkContent:
    Serialize
    + DeserializeOwned
    + Send
    + Sync
    + Eq
    + PartialEq
    + 'static
    + Debug { }
Expand description

Marker trait for the content contained in the NetworkMessage struct

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> NetworkContent for T
where T: Serialize + DeserializeOwned + Send + Sync + Eq + PartialEq + 'static + Debug,