pub struct TransportFailureEvent {
pub code: TransportErrorCode,
pub diagnostic: ErrorDiagnostic,
}Expand description
Transport failure observability event.
Fields§
§code: TransportErrorCodeTransport error category.
diagnostic: ErrorDiagnosticStable transport diagnostic metadata.
Implementations§
Source§impl TransportFailureEvent
impl TransportFailureEvent
Sourcepub fn from_code(code: TransportErrorCode) -> Self
pub fn from_code(code: TransportErrorCode) -> Self
Creates a transport failure event from a stable transport code.
Sourcepub const fn kind(&self) -> EngineEventKind
pub const fn kind(&self) -> EngineEventKind
Returns the stable event kind.
Trait Implementations§
Source§impl Clone for TransportFailureEvent
impl Clone for TransportFailureEvent
Source§fn clone(&self) -> TransportFailureEvent
fn clone(&self) -> TransportFailureEvent
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 TransportFailureEvent
impl Debug for TransportFailureEvent
Source§impl PartialEq for TransportFailureEvent
impl PartialEq for TransportFailureEvent
Source§fn eq(&self, other: &TransportFailureEvent) -> bool
fn eq(&self, other: &TransportFailureEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TransportFailureEvent
impl Eq for TransportFailureEvent
impl StructuralPartialEq for TransportFailureEvent
Auto Trait Implementations§
impl Freeze for TransportFailureEvent
impl RefUnwindSafe for TransportFailureEvent
impl Send for TransportFailureEvent
impl Sync for TransportFailureEvent
impl Unpin for TransportFailureEvent
impl UnsafeUnpin for TransportFailureEvent
impl UnwindSafe for TransportFailureEvent
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