pub struct AnnounceRateDefaults {
pub target: Option<f64>,
pub penalty: f64,
pub grace: u32,
}Expand description
Default announce-rate controls applied to transport-node interfaces.
Fields§
§target: Option<f64>§penalty: f64§grace: u32Trait Implementations§
Source§impl Clone for AnnounceRateDefaults
impl Clone for AnnounceRateDefaults
Source§fn clone(&self) -> AnnounceRateDefaults
fn clone(&self) -> AnnounceRateDefaults
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 AnnounceRateDefaults
impl Debug for AnnounceRateDefaults
Source§impl Default for AnnounceRateDefaults
impl Default for AnnounceRateDefaults
Source§impl PartialEq for AnnounceRateDefaults
impl PartialEq for AnnounceRateDefaults
Source§fn eq(&self, other: &AnnounceRateDefaults) -> bool
fn eq(&self, other: &AnnounceRateDefaults) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AnnounceRateDefaults
impl StructuralPartialEq for AnnounceRateDefaults
Auto Trait Implementations§
impl Freeze for AnnounceRateDefaults
impl RefUnwindSafe for AnnounceRateDefaults
impl Send for AnnounceRateDefaults
impl Sync for AnnounceRateDefaults
impl Unpin for AnnounceRateDefaults
impl UnsafeUnpin for AnnounceRateDefaults
impl UnwindSafe for AnnounceRateDefaults
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