#[non_exhaustive]pub enum TimeoutKind {
Handshake,
Idle,
Read,
Write,
Exchange,
Park,
Connect,
Drain,
}Expand description
Which deadline passed.
assert_eq!(net_io::TimeoutKind::Idle.as_str(), "idle");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.
Handshake
The handshake (PROXY and TLS).
Idle
Waiting for the next exchange.
Read
Waiting for bytes during an exchange.
Write
Waiting for the peer to take bytes.
Exchange
The session’s total deadline for the exchange.
Park
A parked connection.
Connect
An outbound connect.
Drain
A drain.
Implementations§
Trait Implementations§
Source§impl Clone for TimeoutKind
impl Clone for TimeoutKind
impl Copy for TimeoutKind
Source§impl Debug for TimeoutKind
impl Debug for TimeoutKind
impl Eq for TimeoutKind
Source§impl Hash for TimeoutKind
impl Hash for TimeoutKind
Source§impl PartialEq for TimeoutKind
impl PartialEq for TimeoutKind
impl StructuralPartialEq for TimeoutKind
Auto Trait Implementations§
impl Freeze for TimeoutKind
impl RefUnwindSafe for TimeoutKind
impl Send for TimeoutKind
impl Sync for TimeoutKind
impl Unpin for TimeoutKind
impl UnsafeUnpin for TimeoutKind
impl UnwindSafe for TimeoutKind
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