pub enum KbError {
Database(Error),
NotFound(String),
Io(Error),
CorruptAstBlob {
node_id: String,
reason: String,
},
}Expand description
Errors that can occur in kb operations.
Variants§
Database(Error)
A database operation failed.
NotFound(String)
A node was not found.
Io(Error)
An I/O operation failed.
CorruptAstBlob
A stored ast_blob failed to decode, attributed to the owning node.
Trait Implementations§
Source§impl Error for KbError
impl Error for KbError
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 !RefUnwindSafe for KbError
impl !UnwindSafe for KbError
impl Freeze for KbError
impl Send for KbError
impl Sync for KbError
impl Unpin for KbError
impl UnsafeUnpin for KbError
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