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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.