pub struct WsIoPacket {
pub data: Option<Vec<u8>>,
pub key: Option<String>,
pub type: WsIoPacketType,
}Fields§
§data: Option<Vec<u8>>§key: Option<String>§type: WsIoPacketTypeImplementations§
Source§impl WsIoPacket
impl WsIoPacket
Trait Implementations§
Source§impl Clone for WsIoPacket
impl Clone for WsIoPacket
Source§fn clone(&self) -> WsIoPacket
fn clone(&self) -> WsIoPacket
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 WsIoPacket
impl RefUnwindSafe for WsIoPacket
impl Send for WsIoPacket
impl Sync for WsIoPacket
impl Unpin for WsIoPacket
impl UnwindSafe for WsIoPacket
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