pub enum WsFrameOwned {
Text(String),
Binary(Vec<u8>),
Close(u16, String),
Ping(Vec<u8>),
Pong(Vec<u8>),
Unknown,
}Expand description
Websocket frame (packet) Owned version of WsFrame
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for WsFrameOwned
impl Clone for WsFrameOwned
Source§fn clone(&self) -> WsFrameOwned
fn clone(&self) -> WsFrameOwned
Returns a copy 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 WsFrameOwned
impl RefUnwindSafe for WsFrameOwned
impl Send for WsFrameOwned
impl Sync for WsFrameOwned
impl Unpin for WsFrameOwned
impl UnwindSafe for WsFrameOwned
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