#[non_exhaustive]pub struct EtherOptions {
pub auto_negotiation: Option<bool>,
pub remote_fault: Option<String>,
pub flow_control: Option<bool>,
pub loopback: Option<bool>,
pub source_filtering: Option<bool>,
pub speed: Option<String>,
pub link_mode: Option<String>,
pub fec: Option<String>,
pub ieee_802_3ad: Option<Ieee8023ad>,
}Expand description
The Ethernet options of a physical 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.auto_negotiation: Option<bool>Some(true) for auto-negotiation, Some(false) for no-auto-negotiation.
remote_fault: Option<String>local-interface-online or local-interface-offline.
flow_control: Option<bool>Some(true) for flow-control, Some(false) for no-flow-control.
loopback: Option<bool>Some(true) for loopback, Some(false) for no-loopback.
source_filtering: Option<bool>Some(true) for source-filtering, Some(false) for no-source-filtering.
speed: Option<String>§link_mode: Option<String>full-duplex, half-duplex or automatic.
fec: Option<String>e.g. "fec91", "fec74", "fec108" or "none".
ieee_802_3ad: Option<Ieee8023ad>The bundle this interface is a member of; the statement is 802.3ad.
Trait Implementations§
Source§impl Clone for EtherOptions
impl Clone for EtherOptions
Source§impl Debug for EtherOptions
impl Debug for EtherOptions
impl Eq for EtherOptions
Source§impl PartialEq for EtherOptions
impl PartialEq for EtherOptions
impl StructuralPartialEq for EtherOptions
Auto Trait Implementations§
impl Forget for EtherOptions
impl Freeze for EtherOptions
impl Move for EtherOptions
impl RefUnwindSafe for EtherOptions
impl Send for EtherOptions
impl Sync for EtherOptions
impl Unpin for EtherOptions
impl UnsafeUnpin for EtherOptions
impl UnwindSafe for EtherOptions
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