pub struct SerializableProtocolError {
pub error_type: ProtocolErrorType,
pub description: String,
}
Expand description
A serializable variant of the protocol error. Contains a description of the error and the error type.
Fields§
§error_type: ProtocolErrorType
§description: String
Trait Implementations§
Source§impl Clone for SerializableProtocolError
impl Clone for SerializableProtocolError
Source§fn clone(&self) -> SerializableProtocolError
fn clone(&self) -> SerializableProtocolError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SerializableProtocolError
impl Debug for SerializableProtocolError
Source§impl<'de> Deserialize<'de> for SerializableProtocolError
impl<'de> Deserialize<'de> for SerializableProtocolError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SerializableProtocolError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SerializableProtocolError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SerializableProtocolError
impl Display for SerializableProtocolError
Source§impl Error for SerializableProtocolError
impl Error for SerializableProtocolError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ProtocolError> for SerializableProtocolError
impl From<ProtocolError> for SerializableProtocolError
Source§fn from(value: ProtocolError) -> SerializableProtocolError
fn from(value: ProtocolError) -> SerializableProtocolError
Converts to this type from the input type.
Source§impl From<SerializableProtocolError> for ProtocolError
impl From<SerializableProtocolError> for ProtocolError
Source§fn from(value: SerializableProtocolError) -> ProtocolError
fn from(value: SerializableProtocolError) -> ProtocolError
Converts to this type from the input type.
Source§impl Serialize for SerializableProtocolError
impl Serialize for SerializableProtocolError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SerializableProtocolError
impl RefUnwindSafe for SerializableProtocolError
impl Send for SerializableProtocolError
impl Sync for SerializableProtocolError
impl Unpin for SerializableProtocolError
impl UnwindSafe for SerializableProtocolError
Blanket Implementations§
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