Skip to main content

UserMsgPayload

Trait UserMsgPayload 

Source
pub trait UserMsgPayload:
    Serialize
    + DeserializeOwned
    + Clone { }
Expand description

Marker trait for application message types carried over the mesh.

Auto-implemented for any Serialize + DeserializeOwned + Clone — users don’t implement it manually.

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§