Struct mas_http::CatchHttpCodesLayer
source · pub struct CatchHttpCodesLayer<M> { /* private fields */ }
Implementations§
source§impl<M> CatchHttpCodesLayer<M>where
M: Clone,
impl<M> CatchHttpCodesLayer<M>where
M: Clone,
pub fn new<B>(bounds: B, mapper: M) -> Selfwhere
B: RangeBounds<StatusCode>,
pub fn exact(status_code: StatusCode, mapper: M) -> Self
Trait Implementations§
source§impl<M: Clone> Clone for CatchHttpCodesLayer<M>
impl<M: Clone> Clone for CatchHttpCodesLayer<M>
source§fn clone(&self) -> CatchHttpCodesLayer<M>
fn clone(&self) -> CatchHttpCodesLayer<M>
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 moreAuto Trait Implementations§
impl<M> Freeze for CatchHttpCodesLayer<M>where
M: Freeze,
impl<M> RefUnwindSafe for CatchHttpCodesLayer<M>where
M: RefUnwindSafe,
impl<M> Send for CatchHttpCodesLayer<M>where
M: Send,
impl<M> Sync for CatchHttpCodesLayer<M>where
M: Sync,
impl<M> Unpin for CatchHttpCodesLayer<M>where
M: Unpin,
impl<M> UnwindSafe for CatchHttpCodesLayer<M>where
M: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)