#[non_exhaustive]pub struct OpticsOptions {Show 24 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>,
pub application: Option<OpticsApplication>,
pub appselid: Option<String>,
pub host_side_fec: Option<String>,
pub media_side_fec: Option<String>,
pub lane: Option<String>,
pub lane_all: bool,
pub loopbacks: Vec<String>,
pub signal_degrade: Option<SignalDegrade>,
pub tca: Vec<Tca>,
}Expand description
The optics settings 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.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.
application: Option<OpticsApplication>§appselid: Option<String>The id of appselid.
host_side_fec: Option<String>"off", "on" or "not-supported".
media_side_fec: Option<String>"off", "on" or "unsupported".
lane: Option<String>The argument of lane.
lane_all: bool§loopbacks: Vec<String>Each loopback as written, e.g. "media-side-in" or "local".
signal_degrade: Option<SignalDegrade>§tca: Vec<Tca>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 OpticsOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Tca>: Freeze,
impl Move for OpticsOptions
impl RefUnwindSafe for OpticsOptions
impl Send for OpticsOptionswhere
RawVecInner: Send,
impl Sync for OpticsOptionswhere
RawVecInner: Sync,
impl Unpin for OpticsOptions
impl UnsafeUnpin for OpticsOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Tca>: UnsafeUnpin,
impl UnwindSafe for OpticsOptionswhere
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