Struct routinator::payload::PayloadHistory[][src]

pub struct PayloadHistory { /* fields omitted */ }
Expand description

The history of the validated payload.

Implementations

Creates a new history from the configuration.

Returns whether the history is already active.

The history becoes active once the first validation has finished.

Returns a shareable reference to the current payload snapshot.

If the history isn’t active yet, returns None.

Returns the duration until the next refresh should start.

Returns the duration until a new set of data will likely be available.

Because the update duration can vary widely, this is a guess at best.

Returns a delta from the given serial number to the current set.

The serial is what the requestor has last seen. The method produces a delta from that version to the current version if it can. If it can’t, this is either because it doesn’t have enough history data or because the serial is actually in the future.

The method returns an arc’d delta so it can return the delta from the previous version which is the most likely scenario for RTR.

Returns the serial number of the current data set.

Returns the session ID.

Returns the RTR version of the session ID.

This is the last 16 bits of the full session ID.

Returns the current metrics if they are available yet.

Returns the time the last update was started.

Returns the time the last update has concluded.

Returns the time the last update has concluded.

Returns the time the current payload snapshot was created.

The value returned guarantees that no two snapshots where created within the second. Consequently, it may occasionally be off by a second or two.

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

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.