pub enum LoadResult<T> {
Ok(T),
NotFound,
Invalid(FmtError),
}Expand description
Result of a loading operation.
Variants§
Ok(T)
Successfully loaded and parsed.
NotFound
Resource not found at the given key.
Invalid(FmtError)
Resource exists but is invalid.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LoadResult<T>where
T: Freeze,
impl<T> !RefUnwindSafe for LoadResult<T>
impl<T> Send for LoadResult<T>where
T: Send,
impl<T> Sync for LoadResult<T>where
T: Sync,
impl<T> Unpin for LoadResult<T>where
T: Unpin,
impl<T> !UnwindSafe for LoadResult<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