#[non_exhaustive]pub enum Step {
Read,
Write,
Park {
until: Option<Instant>,
},
Close,
Abort,
}Expand description
What the session wants next.
assert_ne!(net_io::Step::Close, net_io::Step::Abort);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.
Read
Wait for more input. Output pushed in this call is not sent: return
Write (or Close) to flush it first.
Write
Flush pending output, then on_writable.
Park
No reads, no idle timer, until a completion or the park deadline.
Close
Graceful: flush, FIN, bounded linger.
Abort
RST now.
Trait Implementations§
impl Copy for Step
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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