pub enum Phase {
Idle,
Receiving,
Sending,
}Expand description
Which deadlines run.
assert_eq!(net_io::Phase::default(), net_io::Phase::Idle);Variants§
Idle
Between exchanges: the idle timeout.
Receiving
Receiving an exchange: the read timeout, the inbound rate, the exchange deadline.
Sending
Sending: the write timeout, the outbound rate, the exchange deadline.
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
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