SessionOutage
pub struct SessionOutage
A span of session time in which one source was not there, and the reason it was not.
Read from the records the recorder wrote into the file, so it survives the recorder: an application that opens a session file a year later gets the same answer the operator had at the time.
SessionOutage — fields
ended: bool
The source ended here rather than dropping out. An ended
source has no SessionOutage::until_us by construction.
from_us: u64
When the source went away, in session microseconds.
until_us: Option<u64>
When it came back, or None when it never did.
The ABI spells "never" as OUTAGE_OPEN; this is the one
place that sentinel is translated, so no caller has to know it.
reason: String
What the application said about it at the time, or empty.
SessionOutage — methods
pub fn duration_us(&self) -> Option<u64>
How long the source was away, or None for an outage the file
never closed.