Struct routinator::payload::PayloadSnapshot [−][src]
pub struct PayloadSnapshot { /* fields omitted */ }
Expand description
The complete set of validated payload data.
Implementations
pub fn from_report(
report: ValidationReport,
exceptions: &LocalExceptions,
metrics: &mut Metrics,
unsafe_vrps: FilterPolicy
) -> Self
pub fn from_report(
report: ValidationReport,
exceptions: &LocalExceptions,
metrics: &mut Metrics,
unsafe_vrps: FilterPolicy
) -> Self
Creates a new snapshot from a report.
The function takes all the data from report
and removes any
duplicates. Depending on the unsafe_vrps
policy, it may remove all
data for resources listed in report
’s rejected resources. Finally,
it removes entries filtered in exceptions
and adds assertions from
exceptions
. It also updates the metrics
and constructs all
necessary meta information for the data.
Returns an slice of all the route origins.
pub fn into_vrp_iter(self: Arc<Self>) -> SnapshotVrpIterⓘNotable traits for SnapshotVrpIterimpl Iterator for SnapshotVrpIter type Item = Payload;
pub fn into_vrp_iter(self: Arc<Self>) -> SnapshotVrpIterⓘNotable traits for SnapshotVrpIterimpl Iterator for SnapshotVrpIter type Item = Payload;
Notable traits for SnapshotVrpIter
impl Iterator for SnapshotVrpIter type Item = Payload;
Converts a shared snapshot into a VRP iterator.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PayloadSnapshot
impl Send for PayloadSnapshot
impl Sync for PayloadSnapshot
impl Unpin for PayloadSnapshot
impl UnwindSafe for PayloadSnapshot
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more