Struct serde_qs::Error []

pub struct Error(pub ErrorKind, _);

The Error type.

This tuple struct is made of two elements:

  • an ErrorKind which is used to determine the type of the error.
  • An internal State, not meant for direct use outside of error_chain internals, containing:
    • a backtrace, generated when the error is created.
    • an error chain, used for the implementation of Error::cause().

Methods

impl Error

Constructs an error from a kind, and generates a backtrace.

Constructs a chained error from another error and a kind, and generates a backtrace.

Construct a chained error from another boxed error and a kind, and generates a backtrace

Returns the kind of the error.

Iterates over the error chain.

Returns the backtrace associated with this error.

Extends the error chain with a new entry.

impl Error
[src]

[src]

Generate error to show top-level type cannot be deserialized.

Trait Implementations

impl Debug for Error

Formats the value using the given formatter.

impl ChainedError for Error

Associated kind type.

Constructs an error from a kind, and generates a backtrace.

Constructs a chained error from another error and a kind, and generates a backtrace.

Returns the kind of the error.

Iterates over the error chain.

Extends the error chain with a new entry.

Returns the backtrace associated with this error.

[src]

Returns an object which implements Display for printing the full context of this error. Read more

impl Error for Error

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for Error

Formats the value using the given formatter. Read more

impl From<Error> for Error

Performs the conversion.

impl From<Error> for Error

Performs the conversion.

impl From<ParseIntError> for Error

Performs the conversion.

impl From<FromUtf8Error> for Error

Performs the conversion.

impl From<ErrorKind> for Error

Performs the conversion.

impl<'a> From<&'a str> for Error

Performs the conversion.

impl From<String> for Error

Performs the conversion.

impl Deref for Error

The resulting type after dereferencing.

Dereferences the value.

impl Error for Error
[src]

[src]

Raised when there is general error when deserializing a type. Read more

[src]

Raised when a Deserialize receives a type different from what it was expecting. Read more

[src]

Raised when a Deserialize receives a value of the right type but that is wrong for some other reason. Read more

[src]

Raised when deserializing a sequence or map and the input data contains too many or too few elements. Read more

[src]

Raised when a Deserialize enum type received a variant with an unrecognized name. Read more

[src]

Raised when a Deserialize struct type received a field with an unrecognized name. Read more

[src]

Raised when a Deserialize struct type expected to receive a required field with a particular name but that field was not present in the input. Read more

[src]

Raised when a Deserialize struct type received more than one of the same field. Read more

impl Error for Error
[src]

[src]

Used when a [Serialize] implementation encounters any error while serializing a type. Read more