pub struct Dep<T: ?Sized>(/* private fields */);Expand description
A resolved dependency. Derefs to T; cloning is Arc-cheap.
Trait Implementations§
Source§impl<T: Send + Sync + 'static> FromRequest for Dep<T>
impl<T: Send + Sync + 'static> FromRequest for Dep<T>
async fn from_request(ctx: &mut RequestCtx) -> Result<Self>
Auto Trait Implementations§
impl<T> Freeze for Dep<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Dep<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for Dep<T>
impl<T> Sync for Dep<T>
impl<T> Unpin for Dep<T>where
T: ?Sized,
impl<T> UnsafeUnpin for Dep<T>where
T: ?Sized,
impl<T> UnwindSafe for Dep<T>where
T: RefUnwindSafe + ?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