Enum pavex::request::body::BodySizeLimit
source · pub enum BodySizeLimit {
Enabled {
max_size: ByteUnit,
},
Disabled,
}
Expand description
An upper limit on the size of incoming request bodies.
Check out the documentation of BufferedBody
for more details.
Variants§
Enabled
There is an active limit on the size of incoming request bodies.
Disabled
There is no limit on the size of incoming request bodies.
Implementations§
source§impl BodySizeLimit
impl BodySizeLimit
sourcepub fn register(bp: &mut Blueprint) -> RegisteredConstructor<'_>
pub fn register(bp: &mut Blueprint) -> RegisteredConstructor<'_>
Register the default constructor
for BodySizeLimit
with a Blueprint
.
sourcepub fn default_constructor() -> Constructor
pub fn default_constructor() -> Constructor
The default constructor for BodySizeLimit
.
Trait Implementations§
source§impl Clone for BodySizeLimit
impl Clone for BodySizeLimit
source§fn clone(&self) -> BodySizeLimit
fn clone(&self) -> BodySizeLimit
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 BodySizeLimit
impl Debug for BodySizeLimit
source§impl Default for BodySizeLimit
impl Default for BodySizeLimit
impl Copy for BodySizeLimit
Auto Trait Implementations§
impl Freeze for BodySizeLimit
impl RefUnwindSafe for BodySizeLimit
impl Send for BodySizeLimit
impl Sync for BodySizeLimit
impl Unpin for BodySizeLimit
impl UnwindSafe for BodySizeLimit
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)