pub struct Limits { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Limiter for Limits
impl Limiter for Limits
Default implementation for the Limits
source§fn on_connection_attempt(&mut self, info: &ConnectionAttempt<'_>) -> Outcome
fn on_connection_attempt(&mut self, info: &ConnectionAttempt<'_>) -> Outcome
This trait is used to determine the outcome of connection attempts on an endpoint. The
implementor returns an Outcome based on the ConnectionAttempt, or other information that the
implementor may have. Read more
impl Copy for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnwindSafe for Limits
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