pub struct BodyLimiterLayer {
pub config: BodyLimiterConfig,
}Fields§
§config: BodyLimiterConfigImplementations§
Source§impl BodyLimiterLayer
impl BodyLimiterLayer
Sourcepub fn new(config: &BodyLimiterConfig) -> Self
pub fn new(config: &BodyLimiterConfig) -> Self
Create a new BodyLimiterLayer
Trait Implementations§
Source§impl Clone for BodyLimiterLayer
impl Clone for BodyLimiterLayer
Source§fn clone(&self) -> BodyLimiterLayer
fn clone(&self) -> BodyLimiterLayer
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 moreAuto Trait Implementations§
impl Freeze for BodyLimiterLayer
impl RefUnwindSafe for BodyLimiterLayer
impl Send for BodyLimiterLayer
impl Sync for BodyLimiterLayer
impl Unpin for BodyLimiterLayer
impl UnsafeUnpin for BodyLimiterLayer
impl UnwindSafe for BodyLimiterLayer
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