Struct tower_http::limit::RequestBodyLimitLayer
source · pub struct RequestBodyLimitLayer { /* private fields */ }
Available on crate feature
limit
only.Expand description
Layer that applies the RequestBodyLimit
middleware that intercepts requests
with body lengths greater than the configured limit and converts them into
413 Payload Too Large
responses.
See the module docs for an example.
Implementations§
Trait Implementations§
source§impl Clone for RequestBodyLimitLayer
impl Clone for RequestBodyLimitLayer
source§fn clone(&self) -> RequestBodyLimitLayer
fn clone(&self) -> RequestBodyLimitLayer
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 RequestBodyLimitLayer
impl Debug for RequestBodyLimitLayer
source§impl<S> Layer<S> for RequestBodyLimitLayer
impl<S> Layer<S> for RequestBodyLimitLayer
impl Copy for RequestBodyLimitLayer
Auto Trait Implementations§
impl RefUnwindSafe for RequestBodyLimitLayer
impl Send for RequestBodyLimitLayer
impl Sync for RequestBodyLimitLayer
impl Unpin for RequestBodyLimitLayer
impl UnwindSafe for RequestBodyLimitLayer
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