pub struct ContextWrap<S>(pub Context<S>);Expand description
Wrapper type that can be used to smuggle a ctx into a request’s extensions.
Tuple Fields§
§0: Context<S>Trait Implementations§
Source§impl<S: Clone> Clone for ContextWrap<S>
impl<S: Clone> Clone for ContextWrap<S>
Source§fn clone(&self) -> ContextWrap<S>
fn clone(&self) -> ContextWrap<S>
Returns a duplicate 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<S> Freeze for ContextWrap<S>where
S: Freeze,
impl<S> !RefUnwindSafe for ContextWrap<S>
impl<S> Send for ContextWrap<S>where
S: Send,
impl<S> Sync for ContextWrap<S>where
S: Sync,
impl<S> Unpin for ContextWrap<S>where
S: Unpin,
impl<S> !UnwindSafe for ContextWrap<S>
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