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 general kind of the error. Code that decides how to respond to an error should read only this field in making its decision.
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 Debug for Error
[src]
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 From<Error> for Error
[src]
impl From<FromUtf8Error> for Error
[src]
fn from(err: FromUtf8Error) -> Error
Performs the conversion.
impl From<Utf8Error> for Error
[src]
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.