Enum syncio::ControlMessage
source · pub enum ControlMessage {
IpTos(u8),
IpTtl(u8),
Ipv6Tclass(u8),
Ipv6HopLimit(u8),
Ipv6PacketInfo {
iface: u32,
local_addr: [u8; 16],
},
Timestamp {
sec: i64,
usec: i64,
},
TimestampNs {
sec: i64,
nsec: i64,
},
}
Variants§
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 copy 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
source§fn eq(&self, other: &ControlMessage) -> bool
fn eq(&self, other: &ControlMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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