Trait HttpDataBound

Source
pub trait HttpDataBound:
    Clone
    + Debug
    + Default
    + DeserializeOwned
    + 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.

Implementations on Foreign Types§

Source§

impl HttpDataBound for ()

Implementors§