Struct otdrs::types::LastKeyEvent
source · [−]pub struct LastKeyEvent {Show 19 fields
pub event_number: i16,
pub event_propogation_time: i32,
pub attenuation_coefficient_lead_in_fiber: i16,
pub event_loss: i16,
pub event_reflectance: i32,
pub event_code: String,
pub loss_measurement_technique: String,
pub marker_location_1: i32,
pub marker_location_2: i32,
pub marker_location_3: i32,
pub marker_location_4: i32,
pub marker_location_5: i32,
pub comment: String,
pub end_to_end_loss: i32,
pub end_to_end_marker_position_1: i32,
pub end_to_end_marker_position_2: i32,
pub optical_return_loss: u16,
pub optical_return_loss_marker_position_1: i32,
pub optical_return_loss_marker_position_2: i32,
}
Expand description
The last key event is as the KeyEvent, with some additional fields; see KeyEvent for the documentation of other fields
Fields
event_number: i16
event_propogation_time: i32
attenuation_coefficient_lead_in_fiber: i16
event_loss: i16
event_reflectance: i32
event_code: String
loss_measurement_technique: String
marker_location_1: i32
marker_location_2: i32
marker_location_3: i32
marker_location_4: i32
marker_location_5: i32
comment: String
end_to_end_loss: i32
End to end loss is in dB*1000 and measures the loss between the two markers defined below
end_to_end_marker_position_1: i32
Start of the measurement span - typically user offset
end_to_end_marker_position_2: i32
End of the measurement span - typically end of fibre event position
optical_return_loss: u16
Return loss in dB*1000 for the markers defined below
optical_return_loss_marker_position_1: i32
Start of the measurement span - typically user offset
optical_return_loss_marker_position_2: i32
End of the measurement span - typically end of fibre event position
Trait Implementations
sourceimpl Clone for LastKeyEvent
impl Clone for LastKeyEvent
sourcefn clone(&self) -> LastKeyEvent
fn clone(&self) -> LastKeyEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LastKeyEvent
impl Debug for LastKeyEvent
sourceimpl PartialEq<LastKeyEvent> for LastKeyEvent
impl PartialEq<LastKeyEvent> for LastKeyEvent
sourcefn eq(&self, other: &LastKeyEvent) -> bool
fn eq(&self, other: &LastKeyEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LastKeyEvent) -> bool
fn ne(&self, other: &LastKeyEvent) -> bool
This method tests for !=
.
sourceimpl Serialize for LastKeyEvent
impl Serialize for LastKeyEvent
impl StructuralPartialEq for LastKeyEvent
Auto Trait Implementations
impl RefUnwindSafe for LastKeyEvent
impl Send for LastKeyEvent
impl Sync for LastKeyEvent
impl Unpin for LastKeyEvent
impl UnwindSafe for LastKeyEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more