pub struct GenerationPair { /* private fields */ }Expand description
Pair of immutable forwarding generations with a reader charge on old.
Implementations§
Source§impl GenerationPair
impl GenerationPair
Sourcepub const fn has_default_route() -> bool
pub const fn has_default_route() -> bool
QDNF has no default-route or LIG/DNS fallback.
Sourcepub fn install_new(&mut self, table: SpfTable, id: u64) -> Result<(), QdnfError>
pub fn install_new(&mut self, table: SpfTable, id: u64) -> Result<(), QdnfError>
Install a computed table as new. Incomplete (nodes == 0) does not publish.
Sourcepub fn activate_new(&mut self) -> Result<(), QdnfError>
pub fn activate_new(&mut self) -> Result<(), QdnfError>
Atomic: unpublished new cannot activate. If old_readers == 0, swap
new → old. If readers remain, keep old until release_old().
Sourcepub fn retain_old(&mut self) -> Result<(), QdnfError>
pub fn retain_old(&mut self) -> Result<(), QdnfError>
Charge a reader on the retained old generation. Saturates at 255 → Capacity.
Sourcepub fn release_old(&mut self) -> Result<(), QdnfError>
pub fn release_old(&mut self) -> Result<(), QdnfError>
Drop one old-generation reader. Zero charges → DoubleRelease.
Trait Implementations§
Source§impl Clone for GenerationPair
impl Clone for GenerationPair
impl Copy for GenerationPair
Source§impl Debug for GenerationPair
impl Debug for GenerationPair
impl Eq for GenerationPair
Source§impl PartialEq for GenerationPair
impl PartialEq for GenerationPair
impl StructuralPartialEq for GenerationPair
Auto Trait Implementations§
impl Freeze for GenerationPair
impl RefUnwindSafe for GenerationPair
impl Send for GenerationPair
impl Sync for GenerationPair
impl Unpin for GenerationPair
impl UnsafeUnpin for GenerationPair
impl UnwindSafe for GenerationPair
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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