pub struct NoLoader<I = IriIndex, M = Location<I>, T = Value<M>>(/* private fields */);
Expand description
Dummy loader.
A dummy loader that does not load anything. Can be useful when you know that you will never need to load remote resource.
Raises an LoadingDocumentFailed
at every attempt to load a resource.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<I, M, T> RefUnwindSafe for NoLoader<I, M, T>
impl<I, M, T> Send for NoLoader<I, M, T>
impl<I, M, T> Sync for NoLoader<I, M, T>
impl<I, M, T> Unpin for NoLoader<I, M, T>
impl<I, M, T> UnwindSafe for NoLoader<I, M, 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