Struct dittolive_ditto::error::DittoError
source · [−]pub struct DittoError { /* private fields */ }
Implementations
sourceimpl DittoError
impl DittoError
sourcepub fn new<E>(kind: ErrorKind, rust_err: E) -> DittoError where
E: Into<Box<dyn ErrorTrait + Send + Sync>>,
pub fn new<E>(kind: ErrorKind, rust_err: E) -> DittoError where
E: Into<Box<dyn ErrorTrait + Send + Sync>>,
Construct an error from an existing Error creating and error chain
sourcepub fn from_str(kind: ErrorKind, msg: impl Into<String>) -> DittoError
pub fn from_str(kind: ErrorKind, msg: impl Into<String>) -> DittoError
Construct an error with a specific message from a string
pub fn license(err: LicenseError) -> DittoError
sourcepub fn from_ffi(kind: ErrorKind) -> DittoError
pub fn from_ffi(kind: ErrorKind) -> DittoError
Manually specify the Error Kind, but fetch the message from the FFI
The result is returned as a RUST style error
with the cause of
pub fn kind(&self) -> ErrorKind
pub fn get_authentication_client_feedback(
&self
) -> Option<AuthenticationClientFeedback>
Trait Implementations
sourceimpl Debug for DittoError
impl Debug for DittoError
sourceimpl Display for DittoError
impl Display for DittoError
sourceimpl Error for DittoError
impl Error for DittoError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for DittoError
impl From<Error> for DittoError
sourceimpl From<ErrorKind> for DittoError
impl From<ErrorKind> for DittoError
sourcefn from(kind: ErrorKind) -> DittoError
fn from(kind: ErrorKind) -> DittoError
Performs the conversion.
sourceimpl From<Infallible> for DittoError
impl From<Infallible> for DittoError
sourcefn from(err: Infallible) -> Self
fn from(err: Infallible) -> Self
Performs the conversion.
sourceimpl From<i32> for DittoError
impl From<i32> for DittoError
sourcefn from(code: i32) -> DittoError
fn from(code: i32) -> DittoError
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more