pub enum Message {
TextMessage(TextMessage),
BytesMessage(BytesMessage),
MapMessage(MapMessage),
ObjectMessage(ObjectMessage),
}
Expand description
Message enum wich represents the different message types
Variants§
TextMessage(TextMessage)
represents a Text Message
BytesMessage(BytesMessage)
represents a Binary Message
MapMessage(MapMessage)
represents a Map Message
ObjectMessage(ObjectMessage)
represents a Object Message
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<BytesMessage> for Message
impl From<BytesMessage> for Message
source§fn from(msg: BytesMessage) -> Self
fn from(msg: BytesMessage) -> Self
Converts to this type from the input type.
source§impl From<MapMessage> for Message
impl From<MapMessage> for Message
source§fn from(msg: MapMessage) -> Self
fn from(msg: MapMessage) -> Self
Converts to this type from the input type.
source§impl From<ObjectMessage> for Message
impl From<ObjectMessage> for Message
source§fn from(msg: ObjectMessage) -> Self
fn from(msg: ObjectMessage) -> Self
Converts to this type from the input type.
source§impl From<TextMessage> for Message
impl From<TextMessage> for Message
source§fn from(msg: TextMessage) -> Self
fn from(msg: TextMessage) -> Self
Converts to this type from the input type.