Enum vm_resource::ResolveError
source · pub enum ResolveError {
NoResolver {
kind: &'static str,
id: Cow<'static, str>,
},
ParseError {
kind: &'static str,
id: Cow<'static, str>,
source: Error,
},
ResolverError {
kind: &'static str,
id: Cow<'static, str>,
source: Box<dyn Error + Send + Sync>,
},
}
Expand description
An error returned by ResourceResolver::resolve
.
Variants§
NoResolver
The resolver can’t be found.
ParseError
The resource couldn’t be parsed back to the expected type.
Fields
ResolverError
The resource couldn’t be resolved.
Trait Implementations§
source§impl Debug for ResolveError
impl Debug for ResolveError
source§impl Display for ResolveError
impl Display for ResolveError
source§impl Error for ResolveError
impl Error for ResolveError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ResolveError
impl !RefUnwindSafe for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl !UnwindSafe for ResolveError
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