[][src]Struct essrpc::GenericSerializableError

pub struct GenericSerializableError { /* fields omitted */ }

Generic serializable error with a description and optional cause. Used in conjunction with RPCError.

Methods

impl GenericSerializableError[src]

pub fn new(
    e: impl Error
) -> Self
[src]

pub fn from_dyn(e: &dyn Error) -> Self[src]

Create a GenericSerializableError from a trait object. This preserved the description and cause of the error (as another GenericSerializableError), but the specific type and backtrace of the error are lost.

Trait Implementations

impl Display for GenericSerializableError[src]

impl Debug for GenericSerializableError[src]

impl Error for GenericSerializableError[src]

fn description(&self) -> &str
1.0.0
[src]

This method is soft-deprecated. Read more

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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

impl Serialize for GenericSerializableError[src]

impl<'de> Deserialize<'de> for GenericSerializableError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]