pub enum TypedError {
Ffi(Error),
Json(Error),
}Expand description
Either an FFI error or a JSON decode failure from a typed convenience
method. The raw *_json methods on Database never produce this;
they return crate::Result.
Variants§
Trait Implementations§
Source§impl Debug for TypedError
impl Debug for TypedError
Source§impl Display for TypedError
impl Display for TypedError
Source§impl Error for TypedError
impl Error for TypedError
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<Error> for TypedError
impl From<Error> for TypedError
Auto Trait Implementations§
impl !RefUnwindSafe for TypedError
impl !UnwindSafe for TypedError
impl Forget for TypedError
impl Freeze for TypedError
impl Move for TypedError
impl Send for TypedError
impl Sync for TypedError
impl Unpin for TypedError
impl UnsafeUnpin for TypedError
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