pub struct ClientRateLimit {
pub bytes_per_second: NonZeroU32,
pub max_burst_bytes: Option<NonZeroU32>,
}
Available on crate feature
server
only.Expand description
Per-client rate limit configuration.
Fields§
§bytes_per_second: NonZeroU32
Max number of bytes per second to read from the client connection.
max_burst_bytes: Option<NonZeroU32>
Max number of bytes to read in a single burst.
Trait Implementations§
Source§impl Clone for ClientRateLimit
impl Clone for ClientRateLimit
Source§fn clone(&self) -> ClientRateLimit
fn clone(&self) -> ClientRateLimit
Returns a copy of the value. Read more
1.0.0 · 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 ClientRateLimit
impl Debug for ClientRateLimit
impl Copy for ClientRateLimit
Auto Trait Implementations§
impl Freeze for ClientRateLimit
impl RefUnwindSafe for ClientRateLimit
impl Send for ClientRateLimit
impl Sync for ClientRateLimit
impl Unpin for ClientRateLimit
impl UnwindSafe for ClientRateLimit
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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