pub struct Fetch<'a, T: 'a> { /* private fields */ }
Expand description
Allows to fetch a resource in a system immutably.
If the resource isn’t strictly required, you should use Option<Fetch<T>>
.
§Type parameters
T
: The type of the resource
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Fetch<'a, T>
impl<'a, T> !RefUnwindSafe for Fetch<'a, T>
impl<'a, T> Send for Fetch<'a, T>where
T: Sync,
impl<'a, T> Sync for Fetch<'a, T>where
T: Sync,
impl<'a, T> Unpin for Fetch<'a, T>
impl<'a, T> !UnwindSafe for Fetch<'a, T>
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