Struct capnp::Error [] [src]

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

Describes an arbitrary error that prevented an operation from completing.

Fields

kind: ErrorKind

The type of the error. The purpose of this enum is not to describe the error itself, but rather to describe how the client might want to respond to the error.

description: String

Human-readable failure description.

Methods

impl Error
[src]

fn failed(description: String) -> Error

fn overloaded(description: String) -> Error

fn disconnected(description: String) -> Error

fn unimplemented(description: String) -> Error

Trait Implementations

impl Clone for Error
[src]

fn clone(&self) -> Error

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<NotInSchema> for Error
[src]

fn from(e: NotInSchema) -> Error

Performs the conversion.

impl Display for Error
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

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