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

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

Human-readable failure description.

Methods

impl Error

fn failed(description: String) -> Error

fn overloaded(description: String) -> Error

fn disconnected(description: String) -> Error

fn unimplemented(description: String) -> Error

Trait Implementations

impl From<Error> for Error

fn from(err: Error) -> Error

impl From<NotInSchema> for Error

fn from(e: NotInSchema) -> Error

impl Display for Error

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

impl Error for Error

fn description(&self) -> &str

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

Derived Implementations

impl Clone for Error

fn clone(&self) -> Error

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

impl Debug for Error

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