Struct routinator::payload::SharedHistory [−][src]
pub struct SharedHistory(_);
Expand description
A shareable history of the validated payload.
Implementations
Creates a new shared history from the configuration.
Provides access to the underlying history.
pub fn update(
&self,
report: ValidationReport,
exceptions: &LocalExceptions,
metrics: Metrics
) -> bool
pub fn update(
&self,
report: ValidationReport,
exceptions: &LocalExceptions,
metrics: Metrics
) -> bool
Updates the history.
Produces a new snapshot based on a validation report and local exceptions. If this snapshot differs from the current one, adds a new version to the history.
The method returns whether it has indeed added a new version.
Marks the beginning of an update cycle.
Marks the end of an update cycle.
Trait Implementations
type FullIter = SnapshotVrpIter
type FullIter = SnapshotVrpIter
An iterator over the complete set of VRPs.
type DiffIter = DeltaVrpIter
type DiffIter = DeltaVrpIter
An iterator over a difference between two sets of VRPs.
Returns the current state and an iterator over the full set of VRPs.
Returns the current state and an interator over differences in VPRs. Read more
Auto Trait Implementations
impl RefUnwindSafe for SharedHistory
impl Send for SharedHistory
impl Sync for SharedHistory
impl Unpin for SharedHistory
impl UnwindSafe for SharedHistory
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more