pub enum ControlOption {
Unrecognized(u8, Vec<u8>),
MaximumReceiveUnit(u16),
AuthenticationProtocol(u16, Vec<u8>),
QualityProtocol(u16, Vec<u8>),
MagicNumber(u32),
ProtocolFieldCompression,
AddressControlFieldCompression,
}
Expand description
An LCP control option.
Variants§
Unrecognized(u8, Vec<u8>)
Any sequence of bytes not recognized as a valid option.
MaximumReceiveUnit(u16)
The maximum number of bytes in the Information and Padding fields of a PPP packet.
AuthenticationProtocol(u16, Vec<u8>)
The authentication protocol desired, and any additional data as determined by the particular protocol.
QualityProtocol(u16, Vec<u8>)
The link quality monitoring protocol desired, and any additional data as determined by the particular protocol.
MagicNumber(u32)
A 32-bit number which is very likely to be unique on the link.
ProtocolFieldCompression
Requests that the protocol field of PPP packets be compressed (if the sent protocol supports compression).
AddressControlFieldCompression
Requests that the address and control fields of the HDLC framing be compressed.
Trait Implementations§
Source§impl Clone for ControlOption
impl Clone for ControlOption
Source§fn clone(&self) -> ControlOption
fn clone(&self) -> ControlOption
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 ControlOption
impl Debug for ControlOption
Source§impl Hash for ControlOption
impl Hash for ControlOption
Source§impl PartialEq for ControlOption
impl PartialEq for ControlOption
impl Eq for ControlOption
impl StructuralPartialEq for ControlOption
Auto Trait Implementations§
impl Freeze for ControlOption
impl RefUnwindSafe for ControlOption
impl Send for ControlOption
impl Sync for ControlOption
impl Unpin for ControlOption
impl UnwindSafe for ControlOption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)