pub enum IncomingData {
Binary(Vec<u8>),
Text(Vec<u8>),
Pong(Vec<u8>),
}Expand description
Data received over the websocket connection.
Variants§
Binary(Vec<u8>)
Binary application data.
Text(Vec<u8>)
UTF-8 encoded application data.
Pong(Vec<u8>)
PONG control frame data.
Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for IncomingData
impl AsRef<[u8]> for IncomingData
Source§impl Clone for IncomingData
impl Clone for IncomingData
Source§fn clone(&self) -> IncomingData
fn clone(&self) -> IncomingData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IncomingData
impl RefUnwindSafe for IncomingData
impl Send for IncomingData
impl Sync for IncomingData
impl Unpin for IncomingData
impl UnwindSafe for IncomingData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more