Enum libp2p_websocket::framed::Data
source · pub enum Data {
Text(Vec<u8>),
Binary(Vec<u8>),
}
Expand description
Application data received over the websocket connection
Variants§
Implementations§
Trait Implementations§
source§impl Ord for Data
impl Ord for Data
source§impl PartialEq<Data> for Data
impl PartialEq<Data> for Data
source§impl PartialOrd<Data> for Data
impl PartialOrd<Data> for Data
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 moreimpl Eq for Data
impl StructuralEq for Data
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
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