#[non_exhaustive]pub struct PppOptions {Show 17 fields
pub authentication: Vec<String>,
pub mru: Option<String>,
pub mtu: Option<String>,
pub chap: Option<PppChap>,
pub pap: Option<PppPap>,
pub compression: Option<PppCompression>,
pub dynamic_profile: Option<String>,
pub initiate_ncp: Option<String>,
pub ipcp_suggest_dns_option: bool,
pub lcp_max_conf_req: Option<String>,
pub lcp_restart_timer: Option<String>,
pub loopback_clear_timer: Option<String>,
pub ncp_max_conf_req: Option<String>,
pub ncp_restart_timer: Option<String>,
pub on_demand_ip_address: bool,
pub peer_ip_address_optional: bool,
pub no_termination_request: bool,
}Expand description
The ppp-options of an interface.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.authentication: Vec<String>The protocols of authentication [ ... ], e.g. chap and pap.
mru: Option<String>§mtu: Option<String>A size or use-lower-layer.
chap: Option<PppChap>§pap: Option<PppPap>§compression: Option<PppCompression>§dynamic_profile: Option<String>§initiate_ncp: Option<String>ip, ipv6 or dual-stack-passive.
ipcp_suggest_dns_option: bool§lcp_max_conf_req: Option<String>§lcp_restart_timer: Option<String>Milliseconds.
loopback_clear_timer: Option<String>Seconds.
ncp_max_conf_req: Option<String>§ncp_restart_timer: Option<String>Milliseconds.
on_demand_ip_address: bool§peer_ip_address_optional: bool§no_termination_request: boolTrait Implementations§
Source§impl Clone for PppOptions
impl Clone for PppOptions
Source§impl Debug for PppOptions
impl Debug for PppOptions
impl Eq for PppOptions
Source§impl PartialEq for PppOptions
impl PartialEq for PppOptions
impl StructuralPartialEq for PppOptions
Auto Trait Implementations§
impl Forget for PppOptions
impl Freeze for PppOptions
impl Move for PppOptions
impl RefUnwindSafe for PppOptions
impl Send for PppOptionswhere
RawVecInner: Send,
impl Sync for PppOptionswhere
RawVecInner: Sync,
impl Unpin for PppOptions
impl UnsafeUnpin for PppOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for PppOptionswhere
RawVecInner: UnwindSafe,
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