pub struct MaxBodySize(pub usize);Expand description
Maximum body size limit for a request.
Extracted from the request extensions set by the app. Prevents denial-of-service attacks from clients sending arbitrarily large bodies.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for MaxBodySize
impl Clone for MaxBodySize
Source§fn clone(&self) -> MaxBodySize
fn clone(&self) -> MaxBodySize
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 moreimpl Copy for MaxBodySize
Auto Trait Implementations§
impl Freeze for MaxBodySize
impl RefUnwindSafe for MaxBodySize
impl Send for MaxBodySize
impl Sync for MaxBodySize
impl Unpin for MaxBodySize
impl UnsafeUnpin for MaxBodySize
impl UnwindSafe for MaxBodySize
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