#[non_exhaustive]pub struct OtnOptions {Show 18 fields
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>,
pub odu_delay_management: Option<OduDelayManagement>,
pub odu_signal_degrade: Option<SignalDegrade>,
pub preemptive_fast_reroute: Option<PreemptiveFastReroute>,
pub tca: Vec<Tca>,
pub triggers: Vec<OtnTrigger>,
pub line_loopback: Option<bool>,
pub local_loopback: Option<bool>,
}Expand description
The OTN 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.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>§odu_delay_management: Option<OduDelayManagement>§odu_signal_degrade: Option<SignalDegrade>§preemptive_fast_reroute: Option<PreemptiveFastReroute>§tca: Vec<Tca>§triggers: Vec<OtnTrigger>§line_loopback: Option<bool>Some(true) for line-loopback or line-loopback-enable, Some(false) for no-line-loopback.
local_loopback: Option<bool>Some(true) for local-loopback or local-loopback-enable, Some(false) for no-local-loopback.
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 OtnOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Tca>: Freeze,
PhantomData<OtnTrigger>: Freeze,
impl Move for OtnOptions
impl RefUnwindSafe for OtnOptions
impl Send for OtnOptionswhere
RawVecInner: Send,
impl Sync for OtnOptionswhere
RawVecInner: Sync,
impl Unpin for OtnOptions
impl UnsafeUnpin for OtnOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Tca>: UnsafeUnpin,
PhantomData<OtnTrigger>: UnsafeUnpin,
impl UnwindSafe for OtnOptionswhere
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