pub struct WsIoPacket {
pub data: Option<Vec<u8>>,
pub key: Option<String>,
pub type: WsIoPacketType,
}Fields§
§data: Option<Vec<u8>>§key: Option<String>§type: WsIoPacketTypeTrait 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 moreSource§impl Debug for WsIoPacket
impl Debug for WsIoPacket
Source§impl<'de> Deserialize<'de> for WsIoPacket
impl<'de> Deserialize<'de> for WsIoPacket
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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