Struct twilight_model::gateway::event::DispatchEventWithTypeDeserializer [−][src]
pub struct DispatchEventWithTypeDeserializer<'a>(_);Expand description
Deserialize into a DispatchEvent by knowing its event name.
An event name is something like "CHANNEL_CREATE" or "GUILD_MEMBER_ADD".
Implementations
Trait Implementations
type Value = DispatchEvent
type Value = DispatchEvent
The type produced by using this seed.
Equivalent to the more common Deserialize::deserialize method, except
with some initial piece of data (the seed) passed in. Read more
impl<'a> PartialEq<DispatchEventWithTypeDeserializer<'a>> for DispatchEventWithTypeDeserializer<'a>
impl<'a> PartialEq<DispatchEventWithTypeDeserializer<'a>> for DispatchEventWithTypeDeserializer<'a>
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DispatchEventWithTypeDeserializer<'a>
impl<'a> Send for DispatchEventWithTypeDeserializer<'a>
impl<'a> Sync for DispatchEventWithTypeDeserializer<'a>
impl<'a> Unpin for DispatchEventWithTypeDeserializer<'a>
impl<'a> UnwindSafe for DispatchEventWithTypeDeserializer<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more