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§