pub enum TransportErrorCode {
OversizedInput,
InvalidFrame,
UnexpectedEof,
Timeout,
Io,
}Expand description
Stable transport diagnostic categories for logs and external systems.
Variants§
OversizedInput
Input exceeded the configured byte limit.
InvalidFrame
Input framing was invalid for the transport.
UnexpectedEof
Transport reached EOF before a complete packet/frame was available.
Timeout
Transport operation timed out.
Io
Underlying I/O failed.
Implementations§
Source§impl TransportErrorCode
impl TransportErrorCode
Sourcepub fn diagnostic(self) -> ErrorDiagnostic
pub fn diagnostic(self) -> ErrorDiagnostic
Returns structured transport error metadata for operator diagnostics.
Trait Implementations§
Source§impl Clone for TransportErrorCode
impl Clone for TransportErrorCode
Source§fn clone(&self) -> TransportErrorCode
fn clone(&self) -> TransportErrorCode
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 TransportErrorCode
impl Debug for TransportErrorCode
Source§impl PartialEq for TransportErrorCode
impl PartialEq for TransportErrorCode
impl Copy for TransportErrorCode
impl Eq for TransportErrorCode
impl StructuralPartialEq for TransportErrorCode
Auto Trait Implementations§
impl Freeze for TransportErrorCode
impl RefUnwindSafe for TransportErrorCode
impl Send for TransportErrorCode
impl Sync for TransportErrorCode
impl Unpin for TransportErrorCode
impl UnsafeUnpin for TransportErrorCode
impl UnwindSafe for TransportErrorCode
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