pub enum ErrorAttachment {
RawData(Vec<u8>),
String(String),
}Expand description
Data that can be attached to an ErrorFrame for additional diagnostics.
Attachments carry either raw bytes or a string value, and are always
wrapped in an ErrorSensitivityLabel to control their visibility.
Variants§
RawData(Vec<u8>)
Raw binary data (displayed as <raw_data> in output).
String(String)
A human-readable string value.
Trait Implementations§
Source§impl Clone for ErrorAttachment
impl Clone for ErrorAttachment
Source§fn clone(&self) -> ErrorAttachment
fn clone(&self) -> ErrorAttachment
Returns a duplicate 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 ErrorAttachment
impl Debug for ErrorAttachment
Auto Trait Implementations§
impl Freeze for ErrorAttachment
impl RefUnwindSafe for ErrorAttachment
impl Send for ErrorAttachment
impl Sync for ErrorAttachment
impl Unpin for ErrorAttachment
impl UnwindSafe for ErrorAttachment
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