pub enum ErrorKind {
Closed,
PeerClosed,
TruncatedFrame,
Io(ErrorKind),
Timeout,
InvalidData,
InvalidOptions,
Capacity,
IdRangeExhausted,
StreamClosed,
UnsupportedOperation,
Encode,
}Expand description
Transport/router failure, independent of application response errors.
Variants§
Closed
The shared connection was explicitly closed or its last owner dropped.
PeerClosed
EOF while idle, before the expected terminal response.
TruncatedFrame
EOF inside a frame, distinct from a clean byte-stream EOF.
Io(ErrorKind)
An OS-level read, write, or connect failed.
Timeout
Total setup or per-attempt local wait expired.
InvalidData
Malformed framing or envelope.
InvalidOptions
Invalid local range, limits, or options.
Capacity
Byte, item, or in-flight capacity is unavailable.
IdRangeExhausted
All IDs in the negotiated range are reserved or retired.
StreamClosed
An explicit ID has no live send permission on this connection.
UnsupportedOperation
A typed operation is unavailable on this protocol/generation.
Encode
Native serialization failed without submitting a request.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
Source§impl Error for ErrorKind
impl Error for ErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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