pub enum DBError {
MissingCell(String),
NoSuitableCells(String),
FileType(String),
}Expand description
Errors that can occur during database operations.
Variants§
MissingCell(String)
Indicates that a requested cell was not found in the database.
NoSuitableCells(String)
Indicates that no cells matching the criteria were found.
FileType(String)
Indicates an unsupported file format was encountered.
Trait Implementations§
Source§impl Error for DBError
impl Error for DBError
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 DBError
impl RefUnwindSafe for DBError
impl Send for DBError
impl Sync for DBError
impl Unpin for DBError
impl UnwindSafe for DBError
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