pub struct SerializedError {
pub description: String,
pub backtrace: String,
pub error: Option<Box<dyn SerializableError>>,
}
Expand description
SerializedError
is the wire form of errors that can be sent through the proxy.
Fields§
§description: String
§backtrace: String
§error: Option<Box<dyn SerializableError>>
Trait Implementations§
Source§impl Debug for SerializedError
impl Debug for SerializedError
Source§impl<'de> Deserialize<'de> for SerializedError
impl<'de> Deserialize<'de> for SerializedError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Error> for SerializedError
impl From<Error> for SerializedError
Converts any error into a SerializedError
.
Source§fn from(error: Error) -> SerializedError
fn from(error: Error) -> SerializedError
Converts to this type from the input type.
Source§impl From<SerializedError> for Error
impl From<SerializedError> for Error
Converts a SerializedError
back into a real error type.
Source§fn from(ser: SerializedError) -> Error
fn from(ser: SerializedError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerializedError
impl !RefUnwindSafe for SerializedError
impl Send for SerializedError
impl Sync for SerializedError
impl Unpin for SerializedError
impl !UnwindSafe for SerializedError
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more