pub enum PersonalityError {
Io(Error),
Parse(Error),
Validation(Vec<String>),
}Expand description
Errors that can occur when loading or validating a personality TOML file.
Variants§
Io(Error)
File could not be read.
Parse(Error)
TOML content could not be parsed into the expected schema.
Validation(Vec<String>)
Parsed successfully but field values are invalid.
Trait Implementations§
Source§impl Debug for PersonalityError
impl Debug for PersonalityError
Source§impl Display for PersonalityError
impl Display for PersonalityError
Source§impl Error for PersonalityError
impl Error for PersonalityError
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 From<Error> for PersonalityError
impl From<Error> for PersonalityError
Auto Trait Implementations§
impl Freeze for PersonalityError
impl !RefUnwindSafe for PersonalityError
impl Send for PersonalityError
impl Sync for PersonalityError
impl Unpin for PersonalityError
impl UnsafeUnpin for PersonalityError
impl !UnwindSafe for PersonalityError
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