pub enum ControlMessage {
IpTos(u8),
IpTtl(u8),
IpRecvOrigDstAddr([u8; 16]),
Ipv6Tclass(u8),
Ipv6HopLimit(u8),
Ipv6PacketInfo {
iface: u32,
local_addr: [u8; 16],
},
Timestamp {
sec: i64,
usec: i64,
},
TimestampNs {
sec: i64,
nsec: i64,
},
}Variants§
IpTos(u8)
IpTtl(u8)
IpRecvOrigDstAddr([u8; 16])
Ipv6Tclass(u8)
Ipv6HopLimit(u8)
Ipv6PacketInfo
Timestamp
TimestampNs
Implementations§
Source§impl ControlMessage
impl ControlMessage
pub fn get_data_size(&self) -> usize
Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§fn clone(&self) -> ControlMessage
fn clone(&self) -> ControlMessage
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 ControlMessage
impl Debug for ControlMessage
Source§impl PartialEq for ControlMessage
impl PartialEq for ControlMessage
impl Copy for ControlMessage
impl Eq for ControlMessage
impl StructuralPartialEq for ControlMessage
Auto Trait Implementations§
impl Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnwindSafe for ControlMessage
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