Struct dittolive_ditto::error::DittoError
source · pub struct DittoError { /* private fields */ }
Expand description
Custom error for Ditto.
Recoverable errors
Use its .kind()
method to be able to match
on a bunch of
specific known ErrorKind
s.
- ⚠️ be aware that the list of possible kinds is not exhaustive.
Unexpected/unrecoverable errors
Can be {}
-Display
ed for a human-friendly message
and representation.
Implementations§
source§impl DittoError
impl DittoError
pub fn get_authentication_client_feedback( &self ) -> Option<AuthenticationClientFeedback>
Trait Implementations§
source§impl Debug for DittoError
impl Debug for DittoError
source§impl Display for DittoError
impl Display for DittoError
source§impl Error for DittoError
impl Error for DittoError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Box<FfiError>> for DittoError
impl From<Box<FfiError>> for DittoError
source§impl From<Error> for DittoError
impl From<Error> for DittoError
source§impl From<Error> for DittoError
impl From<Error> for DittoError
source§impl From<Error> for DittoError
impl From<Error> for DittoError
source§impl From<ErrorKind> for DittoError
impl From<ErrorKind> for DittoError
source§fn from(kind: ErrorKind) -> DittoError
fn from(kind: ErrorKind) -> DittoError
Converts to this type from the input type.
source§impl From<Infallible> for DittoError
impl From<Infallible> for DittoError
source§fn from(err: Infallible) -> Self
fn from(err: Infallible) -> Self
Converts to this type from the input type.
source§impl From<NonZeroI32> for DittoError
impl From<NonZeroI32> for DittoError
source§fn from(code: NonZeroI32) -> DittoError
fn from(code: NonZeroI32) -> DittoError
Converts to this type from the input type.
source§impl From<i32> for DittoError
impl From<i32> for DittoError
source§fn from(code: i32) -> DittoError
fn from(code: i32) -> DittoError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DittoError
impl Send for DittoError
impl Sync for DittoError
impl Unpin for DittoError
impl !UnwindSafe for DittoError
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