pub enum ShelfError {
Io(String),
Parse(String),
}Expand description
Knowledge shelf persistence errors.
Variants§
Trait Implementations§
Source§impl Clone for ShelfError
impl Clone for ShelfError
Source§fn clone(&self) -> ShelfError
fn clone(&self) -> ShelfError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShelfError
impl Debug for ShelfError
Source§impl Display for ShelfError
impl Display for ShelfError
Source§impl Error for ShelfError
impl Error for ShelfError
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 From<Error> for ShelfError
impl From<Error> for ShelfError
Source§impl PartialEq for ShelfError
impl PartialEq for ShelfError
Source§fn eq(&self, other: &ShelfError) -> bool
fn eq(&self, other: &ShelfError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ShelfError
impl StructuralPartialEq for ShelfError
Auto Trait Implementations§
impl Freeze for ShelfError
impl RefUnwindSafe for ShelfError
impl Send for ShelfError
impl Sync for ShelfError
impl Unpin for ShelfError
impl UnsafeUnpin for ShelfError
impl UnwindSafe for ShelfError
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