Struct sota::gateway::socket::EventWrapper [] [src]

pub struct EventWrapper<E: Encodable> {
    pub version: String,
    pub event: String,
    pub data: E,
}

Fields

version
event
data

Trait Implementations

Derived Implementations

impl<E: Debug + Encodable> Debug for EventWrapper<E>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<E: Eq + Encodable> Eq for EventWrapper<E>
[src]

impl<E: PartialEq + Encodable> PartialEq for EventWrapper<E>
[src]

fn eq(&self, __arg_0: &EventWrapper<E>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &EventWrapper<E>) -> bool

This method tests for !=.

impl<E: Decodable + Encodable> Decodable for EventWrapper<E>
[src]

fn decode<__DE: Decoder>(__arg_0: &mut __DE) -> Result<EventWrapper<E>, __DE::Error>

Deserialize a value using a Decoder.

impl<E: Encodable + Encodable> Encodable for EventWrapper<E>
[src]

fn encode<__SE: Encoder>(&self, __arg_0: &mut __SE) -> Result<(), __SE::Error>

Serialize a value using an Encoder.