pub struct UDPPacketInfo {
pub payload: Payload,
pub ts: Duration,
pub direction: PacketDirection,
pub noise: NoiseType,
}Expand description
Metadata of UDP packet Some information about a UDP packet
Fields§
§payload: Payloadthe payload of the packet
ts: Durationthe timestamp of the packet
direction: PacketDirectionthe direction of the packet
noise: NoiseTypewhether the packet is a noise
Trait Implementations§
Source§impl Clone for UDPPacketInfo
impl Clone for UDPPacketInfo
Source§fn clone(&self) -> UDPPacketInfo
fn clone(&self) -> UDPPacketInfo
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 UDPPacketInfo
impl Debug for UDPPacketInfo
Source§impl PacketInfo for UDPPacketInfo
impl PacketInfo for UDPPacketInfo
Auto Trait Implementations§
impl Freeze for UDPPacketInfo
impl RefUnwindSafe for UDPPacketInfo
impl Send for UDPPacketInfo
impl Sync for UDPPacketInfo
impl Unpin for UDPPacketInfo
impl UnwindSafe for UDPPacketInfo
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