#[non_exhaustive]pub struct PrefixLimit {
pub maximum: Option<String>,
pub teardown: bool,
pub teardown_percentage: Option<String>,
pub idle_timeout: Option<String>,
pub drop_excess: bool,
pub drop_excess_percentage: Option<String>,
pub hide_excess: bool,
pub hide_excess_percentage: Option<String>,
}Expand description
The limit on the prefixes received from a peer, from prefix-limit or accepted-prefix-limit.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.maximum: Option<String>§teardown: boolteardown is configured, with or without a percentage.
teardown_percentage: Option<String>§idle_timeout: Option<String>Minutes, or forever.
drop_excess: bool§drop_excess_percentage: Option<String>§hide_excess: bool§hide_excess_percentage: Option<String>Trait Implementations§
Source§impl Clone for PrefixLimit
impl Clone for PrefixLimit
Source§impl Debug for PrefixLimit
impl Debug for PrefixLimit
Source§impl Default for PrefixLimit
impl Default for PrefixLimit
impl Eq for PrefixLimit
Source§impl PartialEq for PrefixLimit
impl PartialEq for PrefixLimit
impl StructuralPartialEq for PrefixLimit
Auto Trait Implementations§
impl Forget for PrefixLimit
impl Freeze for PrefixLimit
impl Move for PrefixLimit
impl RefUnwindSafe for PrefixLimit
impl Send for PrefixLimitwhere
RawVecInner: Send,
impl Sync for PrefixLimitwhere
RawVecInner: Sync,
impl Unpin for PrefixLimit
impl UnsafeUnpin for PrefixLimit
impl UnwindSafe for PrefixLimitwhere
RawVecInner: UnwindSafe,
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