opentitanlib::proxy::errors

Trait SerializableError

Source
pub trait SerializableError:
    Serialize
    + Error
    + Debug
    + Send
    + Sync
    + Serialize
    + Deserialize {
    // Required method
    fn as_anyhow_error(self: Box<Self>) -> Error;
}
Expand description

SerializableError is a trait which represents an error type that can be sent over the wire by the proxy protocol.

Required Methods§

Source

fn as_anyhow_error(self: Box<Self>) -> Error

Trait Implementations§

Source§

impl<'typetag> Serialize for dyn SerializableError + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn SerializableError + Send + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn SerializableError + Send + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn SerializableError + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§