pub struct PacketWrapper {
pub port: String,
pub payload: Packet,
}Expand description
A PacketWrapper is a wrapper around a Packet with the port name embedded.
Fields§
§port: StringThe port name.
payload: PacketThe wrapped packet Packet.
Implementations§
Source§impl PacketWrapper
impl PacketWrapper
Trait Implementations§
Source§impl Clone for PacketWrapper
impl Clone for PacketWrapper
Source§fn clone(&self) -> PacketWrapper
fn clone(&self) -> PacketWrapper
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 PacketWrapper
impl Debug for PacketWrapper
Source§impl<'de> Deserialize<'de> for PacketWrapper
impl<'de> Deserialize<'de> for PacketWrapper
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 PacketWrapper
impl RefUnwindSafe for PacketWrapper
impl Send for PacketWrapper
impl Sync for PacketWrapper
impl Unpin for PacketWrapper
impl UnwindSafe for PacketWrapper
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