pub struct Res<T: ?Sized>(/* private fields */);Expand description
A wrapper for resources stored within the app. This wrapper is returned when objects are injected into component functions and provide immutable access
Implementations§
Trait Implementations§
Source§impl<T: ?Sized + 'static> FromContainer for Res<T>
impl<T: ?Sized + 'static> FromContainer for Res<T>
fn from_container(container: &Container) -> Self
Auto Trait Implementations§
impl<T> Freeze for Res<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Res<T>where
T: RefUnwindSafe + ?Sized,
impl<T> !Send for Res<T>
impl<T> !Sync for Res<T>
impl<T> Unpin for Res<T>where
T: ?Sized,
impl<T> UnwindSafe for Res<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