pub struct FastFlapRecord {
pub flap_count: u64,
pub blocked: bool,
pub newly_blocked: bool,
pub blocked_until: Option<Instant>,
pub elapsed_since_first: Duration,
}Expand description
Result of recording one short-lived connection.
Fields§
§flap_count: u64§blocked: bool§newly_blocked: bool§blocked_until: Option<Instant>§elapsed_since_first: DurationTrait Implementations§
Source§impl Clone for FastFlapRecord
impl Clone for FastFlapRecord
Source§fn clone(&self) -> FastFlapRecord
fn clone(&self) -> FastFlapRecord
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 moreimpl Copy for FastFlapRecord
Source§impl Debug for FastFlapRecord
impl Debug for FastFlapRecord
impl Eq for FastFlapRecord
Source§impl PartialEq for FastFlapRecord
impl PartialEq for FastFlapRecord
impl StructuralPartialEq for FastFlapRecord
Auto Trait Implementations§
impl Freeze for FastFlapRecord
impl RefUnwindSafe for FastFlapRecord
impl Send for FastFlapRecord
impl Sync for FastFlapRecord
impl Unpin for FastFlapRecord
impl UnsafeUnpin for FastFlapRecord
impl UnwindSafe for FastFlapRecord
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,
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
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