#[non_exhaustive]pub struct OtnOptions {
pub fec: Option<String>,
pub transmit_payload_type: Option<String>,
pub tti: Vec<String>,
pub rate: Option<OtnRate>,
pub signal_degrade: Option<SignalDegrade>,
pub transport_monitoring: bool,
pub is_ma: Option<bool>,
pub laser_enable: Option<bool>,
pub prbs: Option<bool>,
pub odu_ttim_action_enable: Option<bool>,
pub otu_ttim_action_enable: Option<bool>,
}Expand description
The OTN settings of an interface. odu-delay-management, odu-signal-degrade,
preemptive-fast-reroute, tca, trigger and the loopback statements 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.fec: Option<String>e.g. "gfec", "efec", "ufec" or "none".
transmit_payload_type: Option<String>From bytes transmit-payload-type.
tti: Vec<String>Each tti statement as written, e.g. "otu-sapi \"text\"".
rate: Option<OtnRate>§signal_degrade: Option<SignalDegrade>§transport_monitoring: bool§is_ma: Option<bool>Some(true) for is-ma, Some(false) for no-is-ma.
laser_enable: Option<bool>Some(true) for laser-enable, Some(false) for no-laser-enable.
prbs: Option<bool>Some(true) for prbs, Some(false) for no-prbs.
odu_ttim_action_enable: Option<bool>§otu_ttim_action_enable: Option<bool>Trait Implementations§
Source§impl Clone for OtnOptions
impl Clone for OtnOptions
Source§impl Debug for OtnOptions
impl Debug for OtnOptions
impl Eq for OtnOptions
Source§impl PartialEq for OtnOptions
impl PartialEq for OtnOptions
impl StructuralPartialEq for OtnOptions
Auto Trait Implementations§
impl Forget for OtnOptions
impl Freeze for OtnOptions
impl Move for OtnOptions
impl RefUnwindSafe for OtnOptions
impl Send for OtnOptions
impl Sync for OtnOptions
impl Unpin for OtnOptions
impl UnsafeUnpin for OtnOptions
impl UnwindSafe for OtnOptions
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