pub trait ServerPush: Serialize + DeserializeOwned {
const KIND: &'static str;
}Expand description
A server push kind: implemented by every push of this crate (e.g.
ChatMessage for chat.message).
Methods added later always come with a default implementation.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".