pub struct InjectWithKeyMut<TKey, TSvc: ?Sized + 'static>(pub KeyedRefMut<TKey, TSvc>);Expand description
Represents a container for a required, mutable, injected, keyed service.
Tuple Fields§
§0: KeyedRefMut<TKey, TSvc>Trait Implementations§
Source§impl<TKey: Clone, TSvc: Clone + ?Sized + 'static> Clone for InjectWithKeyMut<TKey, TSvc>
impl<TKey: Clone, TSvc: Clone + ?Sized + 'static> Clone for InjectWithKeyMut<TKey, TSvc>
Source§fn clone(&self) -> InjectWithKeyMut<TKey, TSvc>
fn clone(&self) -> InjectWithKeyMut<TKey, TSvc>
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 moreSource§impl<TKey, TSvc, S> FromRequestParts<S> for InjectWithKeyMut<TKey, TSvc>
impl<TKey, TSvc, S> FromRequestParts<S> for InjectWithKeyMut<TKey, TSvc>
Source§type Rejection = (StatusCode, String)
type Rejection = (StatusCode, String)
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Auto Trait Implementations§
impl<TKey, TSvc> Freeze for InjectWithKeyMut<TKey, TSvc>where
TSvc: ?Sized,
impl<TKey, TSvc> RefUnwindSafe for InjectWithKeyMut<TKey, TSvc>where
TKey: RefUnwindSafe,
TSvc: ?Sized,
impl<TKey, TSvc> Send for InjectWithKeyMut<TKey, TSvc>
impl<TKey, TSvc> Sync for InjectWithKeyMut<TKey, TSvc>
impl<TKey, TSvc> Unpin for InjectWithKeyMut<TKey, TSvc>
impl<TKey, TSvc> UnwindSafe for InjectWithKeyMut<TKey, TSvc>where
TKey: UnwindSafe,
TSvc: ?Sized,
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§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.