pub struct OptionLayer<M> { /* private fields */ }Expand description
A middleware for an optional layer.
Implementations§
Trait Implementations§
Source§impl<M: Clone> Clone for OptionLayer<M>
impl<M: Clone> Clone for OptionLayer<M>
Source§fn clone(&self) -> OptionLayer<M>
fn clone(&self) -> OptionLayer<M>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M: Debug> Debug for OptionLayer<M>
impl<M: Debug> Debug for OptionLayer<M>
Source§impl<M, S> Layer<S> for OptionLayer<M>where
M: Layer<S>,
impl<M, S> Layer<S> for OptionLayer<M>where
M: Layer<S>,
Auto Trait Implementations§
impl<M> Freeze for OptionLayer<M>where
M: Freeze,
impl<M> RefUnwindSafe for OptionLayer<M>where
M: RefUnwindSafe,
impl<M> Send for OptionLayer<M>where
M: Send,
impl<M> Sync for OptionLayer<M>where
M: Sync,
impl<M> Unpin for OptionLayer<M>where
M: Unpin,
impl<M> UnwindSafe for OptionLayer<M>where
M: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<R> FirstAddrExt for R
impl<R> FirstAddrExt for R
Source§fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
Convert this resolver into a
FirstAddrResolver. Read more