#[non_exhaustive]pub struct OpticsOptions {Show 15 fields
pub low_light_alarm: Option<OpticsLowLight>,
pub low_light_warning: Option<OpticsLowLight>,
pub alarms: bool,
pub wavelength: Option<String>,
pub tx_power: Option<String>,
pub fec: Option<String>,
pub encoding: Option<String>,
pub modulation_format: Option<String>,
pub los_alarm_threshold: Option<String>,
pub los_warning_threshold: Option<String>,
pub high_polarization: bool,
pub high_power_mode: bool,
pub low_power_mode: bool,
pub laser_enable: Option<bool>,
pub is_ma: Option<bool>,
}Expand description
The optics settings of an interface. signal-degrade, tca, loopback, lane, host-side-fec, media-side-fec
and application are not extracted.
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.low_light_alarm: Option<OpticsLowLight>§low_light_warning: Option<OpticsLowLight>§alarms: boolThe legacy alarms; flag.
wavelength: Option<String>The ITU grid wavelength in nanometres, e.g. "1550.12".
tx_power: Option<String>dBm.
fec: Option<String>e.g. "sdfec" or "hgfec".
encoding: Option<String>§modulation_format: Option<String>e.g. "16qam" or "qpsk".
los_alarm_threshold: Option<String>§los_warning_threshold: Option<String>§high_polarization: bool§high_power_mode: bool§low_power_mode: bool§laser_enable: Option<bool>Some(true) for laser-enable, Some(false) for no-laser-enable.
is_ma: Option<bool>Some(true) for is-ma, Some(false) for no-is-ma.
Trait Implementations§
Source§impl Clone for OpticsOptions
impl Clone for OpticsOptions
Source§impl Debug for OpticsOptions
impl Debug for OpticsOptions
impl Eq for OpticsOptions
Source§impl PartialEq for OpticsOptions
impl PartialEq for OpticsOptions
impl StructuralPartialEq for OpticsOptions
Auto Trait Implementations§
impl Forget for OpticsOptions
impl Freeze for OpticsOptions
impl Move for OpticsOptions
impl RefUnwindSafe for OpticsOptions
impl Send for OpticsOptions
impl Sync for OpticsOptions
impl Unpin for OpticsOptions
impl UnsafeUnpin for OpticsOptions
impl UnwindSafe for OpticsOptions
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