pub enum ThingdError {
InvalidInput(String),
NotFound(String),
Conflict(String),
Storage(String),
}Expand description
Error type returned by thingd core operations.
Variants§
InvalidInput(String)
The caller provided invalid input.
NotFound(String)
A requested record could not be found.
Conflict(String)
The requested operation conflicts with current state.
Storage(String)
The storage adapter failed.
Trait Implementations§
Source§impl Clone for ThingdError
impl Clone for ThingdError
Source§fn clone(&self) -> ThingdError
fn clone(&self) -> ThingdError
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 ThingdError
impl Debug for ThingdError
Source§impl Display for ThingdError
impl Display for ThingdError
impl Eq for ThingdError
Source§impl Error for ThingdError
impl Error for ThingdError
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 PartialEq for ThingdError
impl PartialEq for ThingdError
Source§fn eq(&self, other: &ThingdError) -> bool
fn eq(&self, other: &ThingdError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ThingdError
Auto Trait Implementations§
impl Freeze for ThingdError
impl RefUnwindSafe for ThingdError
impl Send for ThingdError
impl Sync for ThingdError
impl Unpin for ThingdError
impl UnsafeUnpin for ThingdError
impl UnwindSafe for ThingdError
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