pub enum NdbError {
Io(Error),
Expectation(ExpectationError),
Parse(String),
}Expand description
Errors returned while parsing or writing NDB V1.0.
Variants§
Io(Error)
An underlying I/O operation failed.
Expectation(ExpectationError)
The file violated a structural expectation.
Parse(String)
A line could not be parsed.
Trait Implementations§
Source§impl Error for NdbError
impl Error for NdbError
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<ExpectationError> for NdbError
impl From<ExpectationError> for NdbError
Source§fn from(value: ExpectationError) -> Self
fn from(value: ExpectationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NdbError
impl !RefUnwindSafe for NdbError
impl Send for NdbError
impl Sync for NdbError
impl Unpin for NdbError
impl UnsafeUnpin for NdbError
impl !UnwindSafe for NdbError
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