pub enum Incoming<'a> {
Data(Data),
Pong(&'a [u8]),
Closed(CloseReason),
}
Expand description
Data received from the remote end.
Variants§
Data(Data)
Text or binary data.
Pong(&'a [u8])
Data sent with a PONG control frame.
Closed(CloseReason)
The other end closed the connection.
Implementations§
Trait Implementations§
source§impl<'a> Ord for Incoming<'a>
impl<'a> Ord for Incoming<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq<Incoming<'a>> for Incoming<'a>
impl<'a> PartialEq<Incoming<'a>> for Incoming<'a>
source§impl<'a> PartialOrd<Incoming<'a>> for Incoming<'a>
impl<'a> PartialOrd<Incoming<'a>> for Incoming<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more