pub struct CoreError {
pub kind: CoreErrorKind,
pub message: String,
pub offending_type: Option<String>,
}Expand description
Payload for core.error messages.
Sent when a peer can identify a recoverable protocol error for a specific correlation ID. Unrecoverable frame-level errors, such as stream desynchronization or impossible frame lengths, should close the transport instead.
Fields§
§kind: CoreErrorKindMachine-readable error kind.
message: StringHuman-readable diagnostic message.
offending_type: Option<String>Wire message type involved in the error, when it could be determined.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CoreError
impl<'de> Deserialize<'de> for CoreError
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
Auto Trait Implementations§
impl Freeze for CoreError
impl RefUnwindSafe for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
impl UnwindSafe for CoreError
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