pub struct KeyEvent {Show 13 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,
}
Expand description
KeyEvents describe a single event along the fibre path detected by the OTDR
Fields
event_number: i16
Event number - this is from 0 to n
event_propogation_time: i32
Event propogation time is the time in 100ps units from the front panel to the event
attenuation_coefficient_lead_in_fiber: i16
The span loss in db/km (as a 5-digit value, i.e. dB*1000) for the fibre entering the event
event_loss: i16
Loss in dB*1000 for the event
event_reflectance: i32
Reflectance in -dB*1000 for the event
event_code: String
Code for the event is a 6-byte string: Byte 1: 0 = nonreflective, 1 = reflective, 2 = saturated reflective Byte 2: A = added by user, M = moved by user, E = end of fibre, F = found by software, O = out of range, D = modified end of fibre Remaining bytes are the Landmark number if used - 9s otherwise
loss_measurement_technique: String
Loss measurement technique - 2P for two point, LS for least squares, OT for other
marker_location_1: i32
Marker location - ML1 is the OTDR side for 2P/LS/OT measurements
marker_location_2: i32
Marker location - ML2 is the OTDR side for LS measurements, and bounds the event for 2P/OT
marker_location_3: i32
Marker location - ML3 is on the far side for LS measurements, and empty for 2P/OT
marker_location_4: i32
Marker location - ML4 is on the far side for LS measurements, and empty for 2P/OT
marker_location_5: i32
Marker location - ML5 is the reflectance calculation position
comment: String
Free comment on the event
Trait Implementations
impl StructuralPartialEq for KeyEvent
Auto Trait Implementations
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
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