pub struct AdjacencyIndex { /* private fields */ }Expand description
Admitted adjacency plus unpublished recompute state.
Implementations§
Source§impl AdjacencyIndex
impl AdjacencyIndex
Sourcepub const fn topology_generation(&self) -> Generation
pub const fn topology_generation(&self) -> Generation
Topology generation.
Sourcepub const fn published(&self) -> &ForwardingGeneration
pub const fn published(&self) -> &ForwardingGeneration
Published forwarding generation.
Sourcepub const fn draft(&self) -> &ForwardingGeneration
pub const fn draft(&self) -> &ForwardingGeneration
Draft forwarding generation.
Sourcepub fn last_sequence(&self, origin: u8) -> Option<u32>
pub fn last_sequence(&self, origin: u8) -> Option<u32>
Last sequence for origin.
Sourcepub fn live_count(&self, now_unix: u64) -> usize
pub fn live_count(&self, now_unix: u64) -> usize
live count.
Sourcepub fn is_withdrawn(&self, from: u8, to: u8) -> bool
pub fn is_withdrawn(&self, from: u8, to: u8) -> bool
true when withdrawn.
Sourcepub fn live_edges(&self, now_unix: u64, out: &mut [ValidatedEdge]) -> usize
pub fn live_edges(&self, now_unix: u64, out: &mut [ValidatedEdge]) -> usize
Copy live, unexpired, non-withdrawn edges into out.
Sourcepub fn edge_at(&self, slot: usize) -> Option<ValidatedEdge>
pub fn edge_at(&self, slot: usize) -> Option<ValidatedEdge>
Edge at idx.
Sourcepub fn store_recompute(&mut self, table: SpfTable) -> Result<(), QdnfError>
pub fn store_recompute(&mut self, table: SpfTable) -> Result<(), QdnfError>
Store a completed table in draft only. Does not replace published live.
Sourcepub fn publish_recompute(&mut self) -> Result<(), QdnfError>
pub fn publish_recompute(&mut self) -> Result<(), QdnfError>
Publish only after computation completed into draft.
Auto Trait Implementations§
impl Freeze for AdjacencyIndex
impl RefUnwindSafe for AdjacencyIndex
impl Send for AdjacencyIndex
impl Sync for AdjacencyIndex
impl Unpin for AdjacencyIndex
impl UnsafeUnpin for AdjacencyIndex
impl UnwindSafe for AdjacencyIndex
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more