Struct capnp::Error [−][src]
Expand description
Describes an arbitrary error that prevented an operation from completing.
Fields
kind: ErrorKind
Expand description
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
Expand description
Human-readable failure description.
Implementations
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]fn description(&self) -> &str
[src]
fn description(&self) -> &str
[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
fn cause(&self) -> Option<&dyn Error>
[src]
fn cause(&self) -> Option<&dyn Error>
[src]👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
impl From<FromUtf8Error> for Error
[src]
impl From<FromUtf8Error> for Error
[src]fn from(err: FromUtf8Error) -> Error
[src]
fn from(err: FromUtf8Error) -> Error
[src]Performs the conversion.
impl From<NotInSchema> for Error
[src]
impl From<NotInSchema> for Error
[src]fn from(e: NotInSchema) -> Error
[src]
fn from(e: NotInSchema) -> Error
[src]Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more