pub struct ErrorEvent {
pub message: String,
pub code: Option<String>,
}Expand description
Terminal stream error.
Fields§
§message: StringError message.
code: Option<String>Stable error code, when available.
Trait Implementations§
Source§impl Clone for ErrorEvent
impl Clone for ErrorEvent
Source§fn clone(&self) -> ErrorEvent
fn clone(&self) -> ErrorEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ErrorEvent
impl Debug for ErrorEvent
Source§impl PartialEq for ErrorEvent
impl PartialEq for ErrorEvent
Source§impl StreamEvent for ErrorEvent
impl StreamEvent for ErrorEvent
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Stable event type emitted on the wire.
impl StructuralPartialEq for ErrorEvent
Auto Trait Implementations§
impl Freeze for ErrorEvent
impl RefUnwindSafe for ErrorEvent
impl Send for ErrorEvent
impl Sync for ErrorEvent
impl Unpin for ErrorEvent
impl UnsafeUnpin for ErrorEvent
impl UnwindSafe for ErrorEvent
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