pub enum ResolveError {
UnknownDialect {
name: String,
suggestions: Vec<String>,
registered: Vec<String>,
},
AmbiguousName {
name: String,
claimed_by: Vec<String>,
},
NotAPlatformName {
name: String,
reason: EngineVersionError,
},
VersionChosenByTheService {
name: String,
engine: String,
display_name: String,
chosen_by_its_service: bool,
},
UnsupportedVersion(UnsupportedVersion),
}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.
Fields
NotAPlatformName
The name is not a platform’s: a colon in it, or a version after its
@ that is not one.
Fields
reason: EngineVersionErrorWhat is wrong with it, with the spelling that is accepted where there is one.
VersionChosenByTheService
A version was named for an engine that takes none: a managed service that chooses its own, or a target rendered the same for every version.
Fields
UnsupportedVersion(UnsupportedVersion)
A version the engine’s dialect does not answer for.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()