#[non_exhaustive]pub enum IoContext {
Connect,
TlsHandshake,
Read,
Socket,
}Expand description
What an Error::Io was doing when the socket operation failed.
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
Dialling the peer.
TlsHandshake
The TLS handshake over an established connection.
Read
The peer closed the connection while a response or message was awaited.
Socket
A read or write failure surfaced by the framed codec.
Implementations§
Trait Implementations§
impl Copy for IoContext
impl Eq for IoContext
impl StructuralPartialEq for IoContext
Auto Trait Implementations§
impl Forget for IoContext
impl Freeze for IoContext
impl RefUnwindSafe for IoContext
impl Send for IoContext
impl Sync for IoContext
impl Unpin for IoContext
impl UnsafeUnpin for IoContext
impl UnwindSafe for IoContext
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