pub enum StashError {
EmptyPrefix,
InvalidPrefix {
prefix: String,
invalid_chars: HashSet<char>,
},
UnexpectedStashValue {
actual: Value,
expected: Value,
},
JsonDeserialization(String, Error),
JsonSerialization(String, Error),
MissingValue(String),
Fidl(Error),
StashConnect(Error),
}
Variants§
EmptyPrefix
InvalidPrefix
UnexpectedStashValue
JsonDeserialization(String, Error)
JsonSerialization(String, Error)
MissingValue(String)
Fidl(Error)
StashConnect(Error)
Trait Implementations§
Source§impl Debug for StashError
impl Debug for StashError
Source§impl Display for StashError
impl Display for StashError
Source§impl Error for StashError
impl Error for StashError
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 StashError
impl !RefUnwindSafe for StashError
impl Send for StashError
impl Sync for StashError
impl Unpin for StashError
impl !UnwindSafe for StashError
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