pub enum SkillError {
NotConfigured,
NotFound {
name: String,
},
FileNotFound {
name: String,
path: String,
},
InvalidName {
name: String,
},
InvalidPath {
path: String,
},
WrongSkill {
name: String,
},
Failed {
message: String,
},
}Expand description
Why a skill or one of its files could not be read. Every message is safe to show the program.
Variants§
NotConfigured
No SkillProvider is wired into the runtime.
NotFound
The harness has no skill of this name.
FileNotFound
The skill has no file at this path.
InvalidName
The name is not one skill name. The engine refuses these before asking the provider.
InvalidPath
The path is not a relative path inside the skill. The engine refuses these before asking the provider; a provider may refuse more.
WrongSkill
The provider answered load(name) with a skill of another name. The
engine refuses it: the policy decided on name.
Failed
Reading failed for another reason. message is a fixed classification
chosen by the provider.
Trait Implementations§
Source§impl Clone for SkillError
impl Clone for SkillError
Source§impl Debug for SkillError
impl Debug for SkillError
Source§impl<'de> Deserialize<'de> for SkillError
impl<'de> Deserialize<'de> for SkillError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SkillError
impl Display for SkillError
impl Eq for SkillError
Source§impl Error for SkillError
impl Error for SkillError
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()
Source§impl PartialEq for SkillError
impl PartialEq for SkillError
Source§impl Serialize for SkillError
impl Serialize for SkillError
impl StructuralPartialEq for SkillError
Auto Trait Implementations§
impl Freeze for SkillError
impl RefUnwindSafe for SkillError
impl Send for SkillError
impl Sync for SkillError
impl Unpin for SkillError
impl UnsafeUnpin for SkillError
impl UnwindSafe for SkillError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.