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) -> DittoErrorwhere
E: Into<Box<dyn ErrorTrait + Send + Sync>>,
pub fn new<E>(kind: ErrorKind, rust_err: E) -> DittoErrorwhere
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 <String as ErrorTrait>
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
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<Error> for DittoError
impl From<Error> for DittoError
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
Converts to this type from the input type.
sourceimpl From<Infallible> for DittoError
impl From<Infallible> for DittoError
sourcefn from(err: Infallible) -> Self
fn from(err: Infallible) -> Self
Converts to this type from the input type.
sourceimpl From<NonZeroI32> for DittoError
impl From<NonZeroI32> for DittoError
sourcefn from(code: NonZeroI32) -> DittoError
fn from(code: NonZeroI32) -> DittoError
Converts to this type from the input type.
sourceimpl From<i32> for DittoError
impl From<i32> for DittoError
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more