pub enum ResolveError {
UnknownDialect {
name: String,
suggestions: Vec<String>,
registered: Vec<String>,
},
AmbiguousName {
name: String,
claimed_by: Vec<String>,
},
}Expand description
Error returned when a platform name cannot be resolved to one dialect.
Variants§
UnknownDialect
No loaded dialect answers to the name.
Fields
AmbiguousName
More than one loaded dialect answers to the name, so it names neither.
Two plugins claiming one spelling is a mistake in how they are named, not something to guess at: whichever dialect happened to be found first would silently render the other one’s platform.
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
1.30.0 · 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 UnsafeUnpin 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