#[repr(u8)]pub enum Mode {
Reserved = 0,
SymmetricActive = 1,
SymmetricPassive = 2,
Client = 3,
Server = 4,
Broadcast = 5,
NtpControlMessage = 6,
ReservedForPrivateUse = 7,
}Expand description
A 3-bit integer representing the mode.
Note that while this struct is 8-bits, this field is packed to 3 in the actual header.
As the only constructors are via associated constants, it should be impossible to create an
invalid Mode.
Variants§
Reserved = 0
Reserved mode (value 0).
SymmetricActive = 1
Symmetric active mode (value 1).
SymmetricPassive = 2
Symmetric passive mode (value 2).
Client = 3
Client mode (value 3).
Server = 4
Server mode (value 4).
Broadcast = 5
Broadcast mode (value 5).
NtpControlMessage = 6
NTP control message mode (value 6).
ReservedForPrivateUse = 7
Reserved for private use (value 7).
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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