Struct twitch_irc::message::PongMessage
source · [−]pub struct PongMessage {
pub source: IRCMessage,
}Expand description
A PONG connection-control message.
Fields
source: IRCMessageThe message that this PongMessage was parsed from.
Trait Implementations
sourceimpl Clone for PongMessage
impl Clone for PongMessage
sourcefn clone(&self) -> PongMessage
fn clone(&self) -> PongMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PongMessage
impl Debug for PongMessage
sourceimpl<'de> Deserialize<'de> for PongMessage
impl<'de> Deserialize<'de> for PongMessage
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
sourceimpl From<PongMessage> for IRCMessage
impl From<PongMessage> for IRCMessage
sourcefn from(msg: PongMessage) -> IRCMessage
fn from(msg: PongMessage) -> IRCMessage
Converts to this type from the input type.
sourceimpl PartialEq<PongMessage> for PongMessage
impl PartialEq<PongMessage> for PongMessage
sourcefn eq(&self, other: &PongMessage) -> bool
fn eq(&self, other: &PongMessage) -> bool
sourceimpl Serialize for PongMessage
impl Serialize for PongMessage
sourceimpl TryFrom<IRCMessage> for PongMessage
impl TryFrom<IRCMessage> for PongMessage
type Error = ServerMessageParseError
type Error = ServerMessageParseError
The type returned in the event of a conversion error.
sourcefn try_from(source: IRCMessage) -> Result<PongMessage, ServerMessageParseError>
fn try_from(source: IRCMessage) -> Result<PongMessage, ServerMessageParseError>
Performs the conversion.
impl Eq for PongMessage
impl StructuralEq for PongMessage
impl StructuralPartialEq for PongMessage
Auto Trait Implementations
impl RefUnwindSafe for PongMessage
impl Send for PongMessage
impl Sync for PongMessage
impl Unpin for PongMessage
impl UnwindSafe for PongMessage
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.