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

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

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 description(&self) -> &str

This method is soft-deprecated.

Although using it won’t cause compilation warning, new code should use Display instead and new impls can omit it.

To obtain error description as a string, use to_string().

Examples

match "xc".parse::<u32>() {
    Err(e) => {
        // Print `e` itself, not `e.description()`.
        println!("Error: {}", e);
    }
    _ => println!("No 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, 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 description(&self) -> &str {
        "I'm the superhero of errors"
    }

    fn cause(&self) -> Option<&dyn Error> {
        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 description(&self) -> &str {
        "I'm SuperError side kick"
    }
}

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

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

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 description(&self) -> &str {
        "I'm the superhero of errors"
    }

    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 description(&self) -> &str {
        "I'm SuperError side kick"
    }
}

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

fn main() {
    match get_super_error() {
        Err(e) => {
            println!("Error: {}", e.description());
            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 ocurred.

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.

Loading content...

Methods

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 + Send + Sync[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 iter_chain(&self) -> ErrorIter[src]

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

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

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.iter_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());

pub fn iter_sources(&self) -> ErrorIter[src]

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

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

Examples

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

#[derive(Debug)]
struct A;

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

#[derive(Debug)]
struct C(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 fmt::Display for C {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "C")
    }
}

impl Error for A {}

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

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

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

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

let mut iter = err.iter_sources();

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 + Send + Sync[src]

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

Attempts to downcast the box to a concrete type.

Implementations on Foreign Types

impl Error for IntoStringError[src]

impl Error for Error[src]

impl Error for TryRecvError[src]

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

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

impl Error for TryFromSliceError[src]

impl Error for ![src]

impl Error for ParseCharError[src]

impl Error for ParseFloatError[src]

impl Error for DecodeUtf16Error[src]

impl Error for StripPrefixError[src]

impl Error for Error[src]

impl Error for FromUtf8Error[src]

impl Error for JoinPathsError[src]

impl Error for FromBytesWithNulError[src]

impl Error for ParseBoolError[src]

impl Error for BorrowMutError[src]

impl Error for RecvTimeoutError[src]

impl Error for ParseIntError[src]

impl Error for CharTryFromError[src]

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

impl Error for Infallible[src]

impl Error for TryFromIntError[src]

impl Error for BorrowError[src]

impl Error for AccessError[src]

impl Error for FromUtf16Error[src]

impl Error for RecvError[src]

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

impl Error for NulError[src]

impl Error for CannotReallocInPlace[src]

impl Error for LayoutErr[src]

impl Error for SystemTimeError[src]

impl Error for AllocErr[src]

impl Error for Utf8Error[src]

impl Error for AddrParseError[src]

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

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

impl Error for VarError[src]

impl Error for ParseDateError[src]

impl Error for DowncastError[src]

impl Error for ParseWebpageError[src]

impl Error for ParseError[src]

impl Error for ParseError[src]

impl Error for ParseError[src]

impl Error for OutOfRangeError[src]

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

impl Error for FloatIsNan

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 DecodeError

impl Error for TimerError[src]

impl Error for Error[src]

impl Error for FromHexError

impl Error for IoError[src]

impl Error for ReadError[src]

impl Error for WeightedError[src]

impl Error for Error[src]

impl Error for 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, 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> 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, 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, 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, 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, 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, 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, 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> 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> 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> 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> 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, 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> 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<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> 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> 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> Error for Sum3<A, B, C> where
    A: Error,
    B: Error,
    C: 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, 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, 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, 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> 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> 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, 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> 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<A, B> Error for Sum2<A, B> where
    A: Error,
    B: 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 Error for Sum0[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> Error for Sum1<A> where
    A: Error
[src]

impl Error for SpawnError[src]

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

impl Error for Aborted[src]

impl Error for Canceled[src]

impl Error for SendError[src]

impl Error for TryRecvError[src]

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

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

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

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

impl Error for Canceled[src]

impl<T, E> Error for SendError<T, E> where
    E: Any,
    T: Any
[src]

impl<E> Error for SharedError<E> where
    E: Error
[src]

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

impl Error for EnterError[src]

impl Error for Error

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

impl Error for Utf8Error

impl Error for DeserializeError

impl Error for FromUtf8Error

impl Error for Error

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 Error

impl Error for ReqParseError

impl Error for SemVerError

impl Error for ErrorKind[src]

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

impl Error for Error[src]

impl Error for Error[src]

impl Error for DecompressError[src]

impl Error for CompressError[src]

impl Error for InvalidUriParts[src]

impl Error for ToStrError[src]

impl Error for InvalidHeaderNameBytes[src]

impl Error for InvalidUri[src]

impl Error for InvalidHeaderValue[src]

impl Error for InvalidMethod[src]

impl Error for InvalidHeaderName[src]

impl Error for InvalidUriBytes[src]

impl Error for InvalidStatusCode[src]

impl Error for Error[src]

impl Error for InvalidHeaderValueBytes[src]

impl Error for ParseRegionError

impl Error for TlsError

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

impl Error for HttpDispatchError

impl Error for InvalidNameError[src]

impl Error for Error[src]

impl Error for Error[src]

impl Error for CollectBytesError[src]

impl Error for CollectVecError[src]

impl Error for Error[src]

impl Error for FrameTooBig[src]

impl Error for RunError[src]

impl Error for RunTimeoutError[src]

impl Error for TurnError[src]

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

impl Error for SpawnError[src]

impl Error for EnterError[src]

impl Error for ParkError[src]

impl Error for BlockingError[src]

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

impl Error for PopError

impl Error for SetFallbackError[src]

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

impl Error for UnboundedRecvError[src]

impl Error for TryAcquireError[src]

impl Error for RecvError[src]

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

impl Error for UnboundedSendError[src]

impl Error for RecvError[src]

impl Error for RecvError[src]

impl Error for TryRecvError[src]

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

impl Error for SendError[src]

impl Error for AcquireError[src]

impl Error for Error[src]

impl<T> Error for ThrottleError<T> where
    T: 'static + Error
[src]

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

impl Error for Error[src]

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

impl Error for Error[src]

impl Error for ErrorStack[src]

impl Error for X509VerifyResult[src]

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

impl Error for Error[src]

impl Error for DecodeError

impl Error for FromHexError

impl Error for CredentialsError

impl Error for Error

impl Error for Error

impl Error for Error

impl Error for UnicodeWordError

impl Error for Error

impl Error for CaseFoldError

impl Error for Error

impl Error for ParseError[src]

impl Error for EmitterError

impl Error for Error

impl Error for GetBucketMetricsConfigurationError

impl Error for PutBucketAnalyticsConfigurationError

impl Error for PutObjectError

impl Error for PutBucketLifecycleError

impl Error for PutBucketEncryptionError

impl Error for DeleteBucketError

impl Error for GetBucketAclError

impl Error for GetBucketNotificationError

impl Error for ListObjectsV2Error

impl Error for DeleteBucketAnalyticsConfigurationError

impl Error for ListPartsError

impl Error for GetObjectLockConfigurationError

impl Error for PutBucketAclError

impl Error for PutBucketMetricsConfigurationError

impl Error for DeleteBucketMetricsConfigurationError

impl Error for ListBucketMetricsConfigurationsError

impl Error for PutPublicAccessBlockError

impl Error for PutObjectLegalHoldError

impl Error for AbortMultipartUploadError

impl Error for PutBucketNotificationConfigurationError

impl Error for ListBucketsError

impl Error for DeleteBucketReplicationError

impl Error for ListBucketInventoryConfigurationsError

impl Error for ListMultipartUploadsError

impl Error for ListObjectVersionsError

impl Error for PutBucketAccelerateConfigurationError

impl Error for GetBucketPolicyStatusError

impl Error for DeleteBucketWebsiteError

impl Error for UploadPartCopyError

impl Error for HeadBucketError

impl Error for DeleteBucketLifecycleError

impl Error for PutObjectAclError

impl Error for PutBucketLoggingError

impl Error for CreateMultipartUploadError

impl Error for GetBucketReplicationError

impl Error for DeleteObjectsError

impl Error for GetObjectError

impl Error for GetBucketAccelerateConfigurationError

impl Error for GetBucketWebsiteError

impl Error for DeletePublicAccessBlockError

impl Error for GetBucketPolicyError

impl Error for PutObjectTaggingError

impl Error for UploadPartError

impl Error for GetBucketRequestPaymentError

impl Error for GetObjectLegalHoldError

impl Error for GetBucketVersioningError

impl Error for PutBucketTaggingError

impl Error for GetBucketCorsError

impl Error for GetBucketEncryptionError

impl Error for DeleteObjectTaggingError

impl Error for CompleteMultipartUploadError

impl Error for CreateBucketError

impl Error for PutBucketNotificationError

impl Error for GetBucketInventoryConfigurationError

impl Error for PutObjectLockConfigurationError

impl Error for SelectObjectContentError

impl Error for GetObjectRetentionError

impl Error for ListObjectsError

impl Error for HeadObjectError

impl Error for CopyObjectError

impl Error for DeleteBucketEncryptionError

impl Error for GetObjectTaggingError

impl Error for PutBucketPolicyError

impl Error for PutBucketLifecycleConfigurationError

impl Error for GetBucketLoggingError

impl Error for PutBucketReplicationError

impl Error for PutBucketRequestPaymentError

impl Error for GetBucketLifecycleError

impl Error for GetBucketLifecycleConfigurationError

impl Error for PutBucketWebsiteError

impl Error for GetBucketTaggingError

impl Error for DeleteBucketTaggingError

impl Error for GetObjectAclError

impl Error for PutObjectRetentionError

impl Error for DeleteObjectError

impl Error for PutBucketVersioningError

impl Error for GetBucketLocationError

impl Error for GetBucketAnalyticsConfigurationError

impl Error for GetObjectTorrentError

impl Error for DeleteBucketCorsError

impl Error for PutBucketInventoryConfigurationError

impl Error for GetBucketNotificationConfigurationError

impl Error for DeleteBucketPolicyError

impl Error for PutBucketCorsError

impl Error for RestoreObjectError

impl Error for ListBucketAnalyticsConfigurationsError

impl Error for DeleteBucketInventoryConfigurationError

impl Error for GetPublicAccessBlockError

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

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

impl Error for CookieParseError[src]

impl Error for Error[src]

impl Error for DecodeError

impl Error for ParseError[src]

impl Error for Error

impl<E> Error for Compat<E> where
    E: Debug + Display

impl Error for TryFromIntToCharError

impl Error for TryFromIntError

impl Error for Error

impl Error for Error[src]

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 BytesError[src]

impl Error for ParseError[src]

impl Error for WeightedError[src]

impl Error for TimerError[src]

impl Error for Error[src]

impl Error for Error[src]

impl Error for Error

Loading content...

Implementors

impl Error for AwsError[src]

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

impl Error for DbError

impl Error for amadeus::source::postgres::_internal::error::Error

impl Error for WasNull

impl Error for WrongType

impl Error for amadeus::source::serde::_internal::de::value::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...