pub struct SetBodyLayer { /* private fields */ }Expand description
A Tower Layer that wraps an inner service with a SetBody.
Implementations§
Source§impl SetBodyLayer
impl SetBodyLayer
pub fn new(source: impl Into<ValueSource>) -> Self
Trait Implementations§
Source§impl Clone for SetBodyLayer
impl Clone for SetBodyLayer
Auto Trait Implementations§
impl !RefUnwindSafe for SetBodyLayer
impl !UnwindSafe for SetBodyLayer
impl Freeze for SetBodyLayer
impl Send for SetBodyLayer
impl Sync for SetBodyLayer
impl Unpin for SetBodyLayer
impl UnsafeUnpin for SetBodyLayer
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