rsiot::components_config::websocket_general

Trait WebsocketMessage

Source
pub trait WebsocketMessage:
    Clone
    + Debug
    + DeserializeOwned
    + Into<&'static str>
    + Send
    + Serialize
    + Sync { }
Expand description

Типаж для сообщение, пересылаемых по вебсокету

Необходимо реализовать на типе перечисления. Необходимо реализовать автоматически:

#[derive(Clone, Debug, Deserialize, IntoStaticStr, Serialize)]

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§