pub struct Session {
    pub start_time: f64,
    pub end_time: f64,
    pub duration: Duration,
}
Expand description

Describes a session, which is a sub-set of metrics data based on time gaps

Fields

start_time: f64

Timestamp session starts at

end_time: f64

Timestamp session ends at

duration: Duration

Duration of session

Implementations

Creates a new session with given start & end, calculating duration from them

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

Performs the conversion.

Performs the conversion.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. 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.