1.0.0[][src]Trait amadeus::source::serde::_internal::ser::StdError

pub trait StdError: Debug + Display {
    fn source(&self) -> Option<&(dyn Error + 'static)> { ... }
fn backtrace(&self) -> Option<&Backtrace> { ... }
fn description(&self) -> &str { ... }
fn cause(&self) -> Option<&dyn Error> { ... } }

Error is a trait representing the basic expectations for error values, i.e., values of type E in Result<T, E>. Errors must describe themselves through the Display and Debug traits, and may provide cause chain information:

The source method is generally used when errors cross "abstraction boundaries". If one module must report an error that is caused by an error from a lower-level module, it can allow access to that error via the source method. This makes it possible for the high-level module to provide its own errors while also revealing some of the implementation for debugging via source chains.

Provided methods

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0

The lower-level source of this error, if any.

Examples

use std::error::Error;
use std::fmt;

#[derive(Debug)]
struct SuperError {
    side: SuperErrorSideKick,
}

impl fmt::Display for SuperError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "SuperError is here!")
    }
}

impl Error for SuperError {
    fn source(&self) -> Option<&(dyn Error + 'static)> {
        Some(&self.side)
    }
}

#[derive(Debug)]
struct SuperErrorSideKick;

impl fmt::Display for SuperErrorSideKick {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "SuperErrorSideKick is here!")
    }
}

impl Error for SuperErrorSideKick {}

fn get_super_error() -> Result<(), SuperError> {
    Err(SuperError { side: SuperErrorSideKick })
}

fn main() {
    match get_super_error() {
        Err(e) => {
            println!("Error: {}", e);
            println!("Caused by: {}", e.source().unwrap());
        }
        _ => println!("No error"),
    }
}

fn backtrace(&self) -> Option<&Backtrace>

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred.

This function allows inspecting the location, in code, of where an error happened. The returned Backtrace contains information about the stack trace of the OS thread of execution of where the error originated from.

Note that not all errors contain a Backtrace. Also note that a Backtrace may actually be empty. For more information consult the Backtrace type itself.

fn description(&self) -> &str

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

if let Err(e) = "xc".parse::<u32>() {
    // Print `e` itself, no need for description().
    eprintln!("Error: {}", e);
}

fn cause(&self) -> Option<&dyn Error>

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Loading content...

Implementations

impl dyn Error + 'static[src]

pub fn is<T>(&self) -> bool where
    T: 'static + Error
1.3.0[src]

Returns true if the boxed type is the same as T

pub fn downcast_ref<T>(&self) -> Option<&T> where
    T: 'static + Error
1.3.0[src]

Returns some reference to the boxed value if it is of type T, or None if it isn't.

pub fn downcast_mut<T>(&mut self) -> Option<&mut T> where
    T: 'static + Error
1.3.0[src]

Returns some mutable reference to the boxed value if it is of type T, or None if it isn't.

impl dyn Error + 'static + Send[src]

pub fn is<T>(&self) -> bool where
    T: 'static + Error
1.3.0[src]

Forwards to the method defined on the type dyn Error.

pub fn downcast_ref<T>(&self) -> Option<&T> where
    T: 'static + Error
1.3.0[src]

Forwards to the method defined on the type dyn Error.

pub fn downcast_mut<T>(&mut self) -> Option<&mut T> where
    T: 'static + Error
1.3.0[src]

Forwards to the method defined on the type dyn Error.

impl dyn Error + 'static + Sync + Send[src]

pub fn is<T>(&self) -> bool where
    T: 'static + Error
1.3.0[src]

Forwards to the method defined on the type dyn Error.

pub fn downcast_ref<T>(&self) -> Option<&T> where
    T: 'static + Error
1.3.0[src]

Forwards to the method defined on the type dyn Error.

pub fn downcast_mut<T>(&mut self) -> Option<&mut T> where
    T: 'static + Error
1.3.0[src]

Forwards to the method defined on the type dyn Error.

impl dyn Error + 'static[src]

pub fn downcast<T>(
    self: Box<dyn Error + 'static>
) -> Result<Box<T>, Box<dyn Error + 'static>> where
    T: 'static + Error
1.3.0[src]

Attempts to downcast the box to a concrete type.

pub fn chain(&self) -> Chain[src]

🔬 This is a nightly-only experimental API. (error_iter)

Returns an iterator starting with the current error and continuing with recursively calling source.

If you want to omit the current error and only use its sources, use skip(1).

Examples

#![feature(error_iter)]
use std::error::Error;
use std::fmt;

#[derive(Debug)]
struct A;

#[derive(Debug)]
struct B(Option<Box<dyn Error + 'static>>);

impl fmt::Display for A {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "A")
    }
}

impl fmt::Display for B {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "B")
    }
}

impl Error for A {}

impl Error for B {
    fn source(&self) -> Option<&(dyn Error + 'static)> {
        self.0.as_ref().map(|e| e.as_ref())
    }
}

let b = B(Some(Box::new(A)));

// let err : Box<Error> = b.into(); // or
let err = &b as &(dyn Error);

let mut iter = err.chain();

assert_eq!("B".to_string(), iter.next().unwrap().to_string());
assert_eq!("A".to_string(), iter.next().unwrap().to_string());
assert!(iter.next().is_none());
assert!(iter.next().is_none());

impl dyn Error + 'static + Send[src]

pub fn downcast<T>(
    self: Box<dyn Error + 'static + Send>
) -> Result<Box<T>, Box<dyn Error + 'static + Send>> where
    T: 'static + Error
1.3.0[src]

Attempts to downcast the box to a concrete type.

impl dyn Error + 'static + Sync + Send[src]

pub fn downcast<T>(
    self: Box<dyn Error + 'static + Sync + Send>
) -> Result<Box<T>, Box<dyn Error + 'static + Sync + Send>> where
    T: 'static + Error
1.3.0[src]

Attempts to downcast the box to a concrete type.

Implementations on Foreign Types

impl<T> Error for TrySendError<T> where
    T: Send
[src]

impl Error for StripPrefixError[src]

impl<T> Error for Box<T> where
    T: Error
[src]

impl Error for ParseIntError[src]

impl Error for FromVecWithNulError[src]

impl Error for TryFromIntError[src]

impl Error for JoinPathsError[src]

impl Error for BorrowMutError[src]

impl Error for AccessError[src]

impl Error for NulError[src]

impl Error for ParseFloatError[src]

impl<T> Error for TryLockError<T>[src]

impl Error for FromUtf8Error[src]

impl Error for AddrParseError[src]

impl Error for LayoutErr[src]

impl Error for Infallible[src]

impl Error for CharTryFromError[src]

impl Error for VarError[src]

impl Error for Error[src]

impl Error for Utf8Error[src]

impl Error for ![src]

impl Error for IntoStringError[src]

impl Error for TryRecvError[src]

impl<W> Error for IntoInnerError<W> where
    W: Send + Debug
[src]

impl Error for TryFromSliceError[src]

impl<T> Error for PoisonError<T>[src]

impl Error for SystemTimeError[src]

impl Error for Error[src]

impl Error for DecodeUtf16Error[src]

impl Error for ParseCharError[src]

impl<T> Error for SendError<T> where
    T: Send
[src]

impl Error for TryReserveError[src]

impl Error for RecvTimeoutError[src]

impl Error for ParseBoolError[src]

impl Error for FromUtf16Error[src]

impl Error for FromBytesWithNulError[src]

impl Error for BorrowError[src]

impl Error for AllocErr[src]

impl Error for RecvError[src]

impl<W> Error for IntoInnerError<W> where
    W: Any

impl Error for Error

impl Error for Error

impl<E> Error for ParseNotNanError<E> where
    E: Debug

impl Error for FloatIsNan

impl<T> Error for TryFromBigIntError<T> where
    T: Debug
[src]

impl Error for ParseBigIntError[src]

impl Error for CompressError[src]

impl Error for DecompressError[src]

impl Error for LZ4Error

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Error for Sum20<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Error for Sum16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X> Error for Sum24<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error,
    V: Error,
    W: Error,
    X: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L> Error for Sum12<A, B, C, D, E, F, G, H, I, J, K, L> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error
[src]

impl<A, B, C> Error for Sum3<A, B, C> where
    A: Error,
    B: Error,
    C: Error
[src]

impl<A, B, C, D> Error for Sum4<A, B, C, D> where
    A: Error,
    B: Error,
    C: Error,
    D: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa, Ab> Error for Sum28<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa, Ab> where
    A: Error,
    Aa: Error,
    Ab: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error,
    V: Error,
    W: Error,
    X: Error,
    Y: Error,
    Z: Error
[src]

impl<A, B, C, D, E, F, G, H> Error for Sum8<A, B, C, D, E, F, G, H> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa, Ab, Ac> Error for Sum29<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa, Ab, Ac> where
    A: Error,
    Aa: Error,
    Ab: Error,
    Ac: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error,
    V: Error,
    W: Error,
    X: Error,
    Y: Error,
    Z: Error
[src]

impl<A, B, C, D, E> Error for Sum5<A, B, C, D, E> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> Error for Sum17<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa, Ab, Ac, Ad, Ae> Error for Sum31<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa, Ab, Ac, Ad, Ae> where
    A: Error,
    Aa: Error,
    Ab: Error,
    Ac: Error,
    Ad: Error,
    Ae: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error,
    V: Error,
    W: Error,
    X: Error,
    Y: Error,
    Z: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Error for Sum14<A, B, C, D, E, F, G, H, I, J, K, L, M, N> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J> Error for Sum10<A, B, C, D, E, F, G, H, I, J> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error
[src]

impl Error for Sum0[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y> Error for Sum25<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error,
    V: Error,
    W: Error,
    X: Error,
    Y: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa, Ab, Ac, Ad> Error for Sum30<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa, Ab, Ac, Ad> where
    A: Error,
    Aa: Error,
    Ab: Error,
    Ac: Error,
    Ad: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error,
    V: Error,
    W: Error,
    X: Error,
    Y: Error,
    Z: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa, Ab, Ac, Ad, Ae, Af> Error for Sum32<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa, Ab, Ac, Ad, Ae, Af> where
    A: Error,
    Aa: Error,
    Ab: Error,
    Ac: Error,
    Ad: Error,
    Ae: Error,
    Af: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error,
    V: Error,
    W: Error,
    X: Error,
    Y: Error,
    Z: Error
[src]

impl<A, B, C, D, E, F> Error for Sum6<A, B, C, D, E, F> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> Error for Sum15<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U> Error for Sum21<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa> Error for Sum27<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Aa> where
    A: Error,
    Aa: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error,
    V: Error,
    W: Error,
    X: Error,
    Y: Error,
    Z: Error
[src]

impl<A> Error for Sum1<A> where
    A: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> Error for Sum18<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K> Error for Sum11<A, B, C, D, E, F, G, H, I, J, K> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error
[src]

impl<A, B, C, D, E, F, G> Error for Sum7<A, B, C, D, E, F, G> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> Error for Sum13<A, B, C, D, E, F, G, H, I, J, K, L, M> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> Error for Sum19<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error
[src]

impl<A, B> Error for Sum2<A, B> where
    A: Error,
    B: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Error for Sum26<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error,
    V: Error,
    W: Error,
    X: Error,
    Y: Error,
    Z: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V> Error for Sum22<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error,
    V: Error
[src]

impl<A, B, C, D, E, F, G, H, I> Error for Sum9<A, B, C, D, E, F, G, H, I> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W> Error for Sum23<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W> where
    A: Error,
    B: Error,
    C: Error,
    D: Error,
    E: Error,
    F: Error,
    G: Error,
    H: Error,
    I: Error,
    J: Error,
    K: Error,
    L: Error,
    M: Error,
    N: Error,
    O: Error,
    P: Error,
    Q: Error,
    R: Error,
    S: Error,
    T: Error,
    U: Error,
    V: Error,
    W: Error
[src]

impl Error for IoError[src]

impl<T, Item> Error for ReuniteError<T, Item> where
    T: Any
[src]

impl Error for Aborted[src]

impl<T> Error for ReuniteError<T> where
    T: Any
[src]

impl Error for SpawnError[src]

impl<T> Error for TrySendError<T> where
    T: Any
[src]

impl Error for TryRecvError[src]

impl Error for SendError[src]

impl Error for Canceled[src]

impl Error for EnterError[src]

impl Error for Error

impl Error for FromUtf32Error

impl<C> Error for MissingNulError<C> where
    C: UChar, 

impl<C> Error for NulError<C> where
    C: UChar, 

impl<L, R> Error for Either<L, R> where
    L: Error,
    R: Error
[src]

Either implements Error if both L and R implement it.

impl Error for BernoulliError[src]

impl Error for ReadError[src]

impl Error for WeightedError[src]

impl Error for Error[src]

impl Error for Error[src]

impl Error for DowncastError[src]

impl Error for ParseWebpageError[src]

impl Error for ParseDateError[src]

impl Error for ParseError[src]

impl Error for ParseError[src]

impl Error for ParseError[src]

impl Error for OutOfRangeError[src]

impl Error for InvalidOutputSize

impl Error for Error[src]

impl Error for DecodeError

impl Error for RecvError[src]

impl<T> Error for SendError<T> where
    T: Debug
[src]

impl Error for Elapsed[src]

impl Error for TryCurrentError[src]

impl Error for TryRecvError[src]

impl Error for TryLockError[src]

impl<T> Error for TrySendError<T> where
    T: Debug
[src]

impl Error for ClosedError[src]

impl Error for Error[src]

impl<T> Error for SendTimeoutError<T> where
    T: Debug
[src]

impl Error for RecvError[src]

impl Error for ReuniteError[src]

impl<T> Error for SendError<T> where
    T: Debug
[src]

impl Error for JoinError[src]

impl Error for ReuniteError[src]

impl Error for TryRecvError[src]

impl Error for RecvError[src]

impl Error for TryRecvError[src]

impl Error for LinesCodecError[src]

impl Error for LengthDelimitedCodecError[src]

impl<W> Error for IntoInnerError<W> where
    W: Any

impl Error for FromUtf8Error

impl Error for Error

impl Error for DeserializeError

impl Error for Utf8Error

impl Error for Utf8Error

impl Error for FromUtf8Error

impl Error for Error[src]

impl Error for ChannelError[src]

impl Error for Error

impl Error for Errno

impl Error for Void

impl<P, E> Error for Err<P, E> where
    E: Any + Debug,
    P: Any + Debug

impl Error for SpawnError[src]

impl Error for TrySpawnError[src]

impl Error for ErrorKind[src]

impl Error for TrySelectError

impl<T> Error for TrySendError<T> where
    T: Send

impl<T> Error for SendError<T> where
    T: Send

impl Error for RecvError

impl Error for RecvTimeoutError

impl Error for TryRecvError

impl<T> Error for SendTimeoutError<T> where
    T: Send

impl Error for SelectTimeoutError

impl<T> Error for Box<T> where
    T: Error
[src]

impl Error for Error[src]

impl Error for Error[src]

impl Error for InvalidStatusCode[src]

impl Error for InvalidHeaderName[src]

impl Error for InvalidHeaderValue[src]

impl Error for ToStrError[src]

impl Error for InvalidUri[src]

impl Error for InvalidUriParts[src]

impl Error for Error[src]

impl Error for InvalidMethod[src]

impl Error for ListBucketInventoryConfigurationsError

impl Error for CopyObjectError

impl Error for DeleteBucketCorsError

impl Error for PutBucketWebsiteError

impl Error for GetBucketAclError

impl Error for DeleteBucketError

impl Error for PutObjectRetentionError

impl Error for PutBucketInventoryConfigurationError

impl Error for GetBucketVersioningError

impl Error for PutBucketAccelerateConfigurationError

impl Error for GetBucketLifecycleConfigurationError

impl Error for PutBucketNotificationError

impl Error for PutObjectLegalHoldError

impl Error for PutBucketMetricsConfigurationError

impl Error for DeleteBucketLifecycleError

impl Error for PutPublicAccessBlockError

impl Error for ListObjectsV2Error

impl Error for GetObjectLockConfigurationError

impl Error for GetObjectTaggingError

impl Error for PutBucketLoggingError

impl Error for PutBucketReplicationError

impl Error for GetBucketTaggingError

impl Error for GetBucketReplicationError

impl Error for PutBucketLifecycleConfigurationError

impl Error for DeleteBucketTaggingError

impl Error for ListObjectsError

impl Error for DeleteBucketAnalyticsConfigurationError

impl Error for PutBucketEncryptionError

impl Error for PutBucketCorsError

impl Error for DeleteBucketInventoryConfigurationError

impl Error for PutBucketTaggingError

impl Error for ListBucketsError

impl Error for ListBucketAnalyticsConfigurationsError

impl Error for CreateBucketError

impl Error for GetBucketNotificationConfigurationError

impl Error for GetBucketRequestPaymentError

impl Error for PutObjectAclError

impl Error for GetBucketEncryptionError

impl Error for ListMultipartUploadsError

impl Error for DeleteObjectError

impl Error for CompleteMultipartUploadError

impl Error for DeleteObjectTaggingError

impl Error for CreateMultipartUploadError

impl Error for PutObjectTaggingError

impl Error for PutBucketAclError

impl Error for GetBucketLifecycleError

impl Error for DeleteBucketReplicationError

impl Error for PutBucketNotificationConfigurationError

impl Error for GetBucketNotificationError

impl Error for GetBucketLocationError

impl Error for ListPartsError

impl Error for GetBucketPolicyError

impl Error for UploadPartCopyError

impl Error for GetBucketPolicyStatusError

impl Error for SelectObjectContentError

impl Error for DeleteObjectsError

impl Error for PutBucketVersioningError

impl Error for GetBucketInventoryConfigurationError

impl Error for HeadObjectError

impl Error for GetBucketWebsiteError

impl Error for DeleteBucketMetricsConfigurationError

impl Error for GetObjectAclError

impl Error for PutBucketLifecycleError

impl Error for GetBucketAnalyticsConfigurationError

impl Error for PutBucketPolicyError

impl Error for DeleteBucketEncryptionError

impl Error for UploadPartError

impl Error for DeleteBucketWebsiteError

impl Error for GetObjectRetentionError

impl Error for PutObjectError

impl Error for GetBucketMetricsConfigurationError

impl Error for RestoreObjectError

impl Error for GetPublicAccessBlockError

impl Error for DeleteBucketPolicyError

impl Error for PutObjectLockConfigurationError

impl Error for ListObjectVersionsError

impl Error for GetBucketAccelerateConfigurationError

impl Error for GetObjectTorrentError

impl Error for PutBucketRequestPaymentError

impl Error for GetBucketLoggingError

impl Error for AbortMultipartUploadError

impl Error for GetObjectError

impl Error for DeletePublicAccessBlockError

impl Error for ListBucketMetricsConfigurationsError

impl Error for GetBucketCorsError

impl Error for PutBucketAnalyticsConfigurationError

impl Error for GetObjectLegalHoldError

impl Error for HeadBucketError

impl Error for TlsError

impl<E> Error for RusotoError<E> where
    E: 'static + Error

impl Error for HttpDispatchError

impl<S> Error for HandshakeError<S> where
    S: Any + Debug
[src]

impl Error for Error[src]

impl<S> Error for HandshakeError<S> where
    S: Debug
[src]

impl Error for X509VerifyResult[src]

impl Error for Error[src]

impl Error for Error[src]

impl Error for ErrorStack[src]

impl Error for InvalidNameError[src]

impl Error for Error[src]

impl Error for Error[src]

impl Error for Error[src]

impl Error for ParseRegionError

impl Error for CredentialsError

impl Error for Error

impl Error for Error

impl Error for Error

impl Error for Error

impl Error for Error

impl Error for CaseFoldError

impl Error for UnicodeWordError

impl Error for FromHexError[src]

impl Error for ConversionRangeError

impl Error for ParseError

impl Error for Error

impl Error for IndeterminateOffsetError

impl Error for ComponentRangeError

impl Error for EmitterError

impl Error for Error

impl<I, E> Error for Err<I, E> where
    E: Debug,
    I: Debug

impl Error for Error[src]

impl Error for FromStrError[src]

impl Error for Error

fn cause(&self) -> Option<&dyn Error>

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, in the case of a Utf8 error.

impl Error for Error[src]

impl Error for DecodeError

impl Error for Error

Loading content...

Implementors

impl Error for AwsError[src]

impl Error for PostgresError[src]

impl Error for DbError[src]

impl Error for amadeus::source::postgres::_internal::Error[src]

impl Error for NoTlsError[src]

impl Error for WasNull[src]

impl Error for WrongType[src]

impl Error for amadeus::source::serde::_internal::de::value::Error[src]

impl<A, B, C> Error for ParquetError<A, B, C> where
    A: Error,
    B: Error,
    C: Error
[src]

impl<A, B, C> Error for CsvError<A, B, C> where
    A: Error,
    B: Error,
    C: Error
[src]

impl<A, B, C> Error for JsonError<A, B, C> where
    A: Error,
    B: Error,
    C: Error
[src]

Loading content...