Struct capnp::Error [] [src]

pub struct Error {
    pub kind: ErrorKind,
    pub description: String,
}

Describes an arbitrary error that prevented an operation from completing.

Fields

The general kind of the error. Code that decides how to respond to an error should read only this field in making its decision.

Human-readable failure description.

Methods

impl Error
[src]

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

Performs the conversion.

impl From<Utf8Error> for Error
[src]

Performs the conversion.

impl From<Canceled> for Error
[src]

Performs the conversion.

impl From<NotInSchema> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter.

impl Error for Error
[src]

A short description of the error. Read more

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