pub enum BonsaiError {
NotFound(EntryId),
Frozen,
MigrationInProgress,
Serialisation(String),
Config(String),
DimensionMismatch {
expected: usize,
got: usize,
},
}Expand description
Error type for all fallible Bonsai operations.
Variants§
NotFound(EntryId)
Frozen
MigrationInProgress
Serialisation(String)
Config(String)
DimensionMismatch
Trait Implementations§
Source§impl Debug for BonsaiError
impl Debug for BonsaiError
Source§impl Display for BonsaiError
impl Display for BonsaiError
Source§impl Error for BonsaiError
impl Error for BonsaiError
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 BonsaiError
impl RefUnwindSafe for BonsaiError
impl Send for BonsaiError
impl Sync for BonsaiError
impl Unpin for BonsaiError
impl UnsafeUnpin for BonsaiError
impl UnwindSafe for BonsaiError
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