pub struct Error { /* private fields */ }Implementations
sourceimpl Error
impl Error
pub fn new<T>(kind: ErrorKind, message: T) -> Error where
T: Display,
pub fn new0(kind: ErrorKind) -> Error
pub fn newc(kind: ErrorKind, message: Option<String>) -> Error
pub fn code(&self) -> i16
pub fn e<T>(kind: ErrorKind, message: T) -> Error where
T: Display,
pub fn not_found<T>(message: T) -> Error where
T: Display,
pub fn not_ready<T>(message: T) -> Error where
T: Display,
pub fn unsupported<T>(message: T) -> Error where
T: Display,
pub fn registry<T>(message: T) -> Error where
T: Display,
pub fn busy<T>(message: T) -> Error where
T: Display,
pub fn core<T>(message: T) -> Error where
T: Display,
pub fn io<T>(message: T) -> Error where
T: Display,
pub fn duplicate<T>(message: T) -> Error where
T: Display,
pub fn failed<T>(message: T) -> Error where
T: Display,
pub fn access<T>(message: T) -> Error where
T: Display,
pub fn timeout() -> Error
pub fn aborted() -> Error
pub fn invalid_data<T>(message: T) -> Error where
T: Display,
pub fn invalid_params<T>(message: T) -> Error where
T: Display,
pub fn not_implemented<T>(message: T) -> Error where
T: Display,
pub fn kind(&self) -> ErrorKind
pub fn message(&self) -> Option<&str>
Trait Implementations
sourceimpl Error for Error
impl Error for Error
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<DeserializerError> for Error
impl From<DeserializerError> for Error
sourcefn from(err: DeserializerError) -> Error
fn from(err: DeserializerError) -> Error
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
sourcefn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
Converts to this type from the input type.
sourceimpl From<Infallible> for Error
impl From<Infallible> for Error
sourcefn from(_err: Infallible) -> Error
fn from(_err: Infallible) -> Error
Converts to this type from the input type.
sourceimpl From<IpNetworkError> for Error
impl From<IpNetworkError> for Error
sourcefn from(err: IpNetworkError) -> Error
fn from(err: IpNetworkError) -> Error
Converts to this type from the input type.
sourceimpl From<ParseFloatError> for Error
impl From<ParseFloatError> for Error
sourcefn from(err: ParseFloatError) -> Error
fn from(err: ParseFloatError) -> Error
Converts to this type from the input type.
sourceimpl From<ParseIntError> for Error
impl From<ParseIntError> for Error
sourcefn from(err: ParseIntError) -> Error
fn from(err: ParseIntError) -> Error
Converts to this type from the input type.
sourceimpl From<SerializerError> for Error
impl From<SerializerError> for Error
sourcefn from(err: SerializerError) -> Error
fn from(err: SerializerError) -> Error
Converts to this type from the input type.
sourceimpl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
sourcefn from(err: TryFromSliceError) -> Error
fn from(err: TryFromSliceError) -> Error
Converts to this type from the input type.
sourceimpl From<TryLockError> for Error
impl From<TryLockError> for Error
sourcefn from(err: TryLockError) -> Error
fn from(err: TryLockError) -> Error
Converts to this type from the input type.
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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