pub struct RouteBodyLimit(pub usize);Expand description
A per-route body cap, seeded into the call by
RouteBuilder::max_body_bytes.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for RouteBodyLimit
impl Clone for RouteBodyLimit
Source§fn clone(&self) -> RouteBodyLimit
fn clone(&self) -> RouteBodyLimit
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 RouteBodyLimit
Auto Trait Implementations§
impl Freeze for RouteBodyLimit
impl RefUnwindSafe for RouteBodyLimit
impl Send for RouteBodyLimit
impl Sync for RouteBodyLimit
impl Unpin for RouteBodyLimit
impl UnsafeUnpin for RouteBodyLimit
impl UnwindSafe for RouteBodyLimit
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