pub struct ChildConnectionStats {
pub handle: ChildHandle,
pub last_exchange: Option<ChildExchange>,
pub state: ChildState,
}Expand description
The synchronization status of a child CA.
Fields§
§handle: ChildHandleThe local handle of the child CA.
last_exchange: Option<ChildExchange>The last synchronization exchange with the child CA.
This is None if there never was an exchange.
state: ChildStateThe status of the child CA.
Implementations§
Source§impl ChildConnectionStats
impl ChildConnectionStats
Sourcepub fn is_suspension_candidate(&self, threshold_seconds: i64) -> bool
pub fn is_suspension_candidate(&self, threshold_seconds: i64) -> bool
Returns whether the child is considered a candidate for suspension.
The child is considered a candidate for suspension if:
- it is Krill 0.9.2-rc and up as we only know the synchronization interval for those servers,
- the last exchange is longer ago than the specified threshold, and
- the child is not already suspended.
Trait Implementations§
Source§impl Clone for ChildConnectionStats
impl Clone for ChildConnectionStats
Source§fn clone(&self) -> ChildConnectionStats
fn clone(&self) -> ChildConnectionStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChildConnectionStats
impl Debug for ChildConnectionStats
Source§impl<'de> Deserialize<'de> for ChildConnectionStats
impl<'de> Deserialize<'de> for ChildConnectionStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChildConnectionStats
Source§impl PartialEq for ChildConnectionStats
impl PartialEq for ChildConnectionStats
Source§impl Serialize for ChildConnectionStats
impl Serialize for ChildConnectionStats
impl StructuralPartialEq for ChildConnectionStats
Auto Trait Implementations§
impl Freeze for ChildConnectionStats
impl RefUnwindSafe for ChildConnectionStats
impl Send for ChildConnectionStats
impl Sync for ChildConnectionStats
impl Unpin for ChildConnectionStats
impl UnsafeUnpin for ChildConnectionStats
impl UnwindSafe for ChildConnectionStats
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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