#[non_exhaustive]pub enum TransportErrorKind {
Connect,
Protocol,
Http {
status: u16,
},
Closed,
Other,
}Expand description
What kind of transport failure occurred.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connect
Could not establish the connection at all.
Protocol
The peer spoke something this transport could not parse (a malformed
JSON-RPC frame, an SSE frame with no data: line that was required,
a JSON-RPC error response to the subscribe call).
Http
A non-success HTTP status.
Closed
The stream ended without a terminal item.
Other
Anything the transport wants to report that is none of the above.
Trait Implementations§
Source§impl Clone for TransportErrorKind
impl Clone for TransportErrorKind
Source§impl Debug for TransportErrorKind
impl Debug for TransportErrorKind
impl Eq for TransportErrorKind
Source§impl PartialEq for TransportErrorKind
impl PartialEq for TransportErrorKind
impl StructuralPartialEq for TransportErrorKind
Auto Trait Implementations§
impl Freeze for TransportErrorKind
impl RefUnwindSafe for TransportErrorKind
impl Send for TransportErrorKind
impl Sync for TransportErrorKind
impl Unpin for TransportErrorKind
impl UnsafeUnpin for TransportErrorKind
impl UnwindSafe for TransportErrorKind
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