pub struct FloodTable { /* private fields */ }Expand description
16 origins × 4 sequence slots. Admission is fail-closed at Capacity.
Implementations§
Source§impl FloodTable
impl FloodTable
Sourcepub fn admit(&mut self, rec: LsaRecord, now_unix: u64) -> Result<(), QdnfError>
pub fn admit(&mut self, rec: LsaRecord, now_unix: u64) -> Result<(), QdnfError>
Admit rec at now_unix.
Expired input → QdnfError::Expired. Same origin+sequence with a
different digest → QdnfError::Conflict (authenticated conflict,
before quarantine). Same digest → QdnfError::ReservationUnchanged.
Sourcepub fn is_reachable(&self, origin: u8, now_unix: u64) -> bool
pub fn is_reachable(&self, origin: u8, now_unix: u64) -> bool
True only when an admitted, unexpired record exists for origin.
Sourcepub fn has_path(&self, origin: u8, now_unix: u64) -> bool
pub fn has_path(&self, origin: u8, now_unix: u64) -> bool
Missing records do not invent a path.
Sourcepub const fn missing_record_invents_reachability() -> bool
pub const fn missing_record_invents_reachability() -> bool
FloodTable::missing_record_invents_reachability.
Sourcepub const fn has_default_route() -> bool
pub const fn has_default_route() -> bool
true when default_route present.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FloodTable
impl RefUnwindSafe for FloodTable
impl Send for FloodTable
impl Sync for FloodTable
impl Unpin for FloodTable
impl UnsafeUnpin for FloodTable
impl UnwindSafe for FloodTable
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.