pub struct Limit<const LIMIT: usize>;Expand description
helper type for limiting body size. when LIMIT > 0 body size is limited to LIMIT in bytes. when LIMIT == 0 body size is unlimited.
Auto Trait Implementations§
impl<const LIMIT: usize> Freeze for Limit<LIMIT>
impl<const LIMIT: usize> RefUnwindSafe for Limit<LIMIT>
impl<const LIMIT: usize> Send for Limit<LIMIT>
impl<const LIMIT: usize> Sync for Limit<LIMIT>
impl<const LIMIT: usize> Unpin for Limit<LIMIT>
impl<const LIMIT: usize> UnwindSafe for Limit<LIMIT>
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