pub enum BondError {
Io(Error),
Sqlite(Error),
Serde(Error),
AlreadyExists,
TargetExists(String),
NotFound(String),
InvalidPath(String),
Config(String),
AmbiguousId(String),
InvalidTimestamp(String),
}Expand description
Errors surfaced by the API
Variants§
Io(Error)
Filesystem or OS I/O failure.
Sqlite(Error)
SQLite query/connection failure.
Serde(Error)
JSON serialization/deserialization failure.
AlreadyExists
A conflicting bond record already exists.
TargetExists(String)
The requested target path already exists and cannot be replaced.
NotFound(String)
No bond matched the provided identifier.
InvalidPath(String)
A provided path is invalid or unusable.
Config(String)
Configuration file parse or write error.
AmbiguousId(String)
The identifier prefix matched more than one bond.
InvalidTimestamp(String)
Failed to parse or interpret a timestamp.
Trait Implementations§
Source§impl Error for BondError
impl Error for BondError
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 BondError
impl !RefUnwindSafe for BondError
impl Send for BondError
impl Sync for BondError
impl Unpin for BondError
impl UnsafeUnpin for BondError
impl !UnwindSafe for BondError
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