Enum twitch_api::pubsub::Response
source · [−]pub enum Response {
Response(TwitchResponse),
Message {
data: TopicData,
},
Pong,
Reconnect,
}
Available on crate feature
pubsub
only.Expand description
Response from twitchs PubSub server. Either a response indicating status of something or a message from a topic
Variants
Response(TwitchResponse)
Response from a subscription/unsubscription
Message
Message received containing all applicable data
Pong
Response from a ping
Reconnect
Request for the client to reconnect
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
sourcefn 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
impl StructuralPartialEq for Response
Auto Trait Implementations
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more