#[non_exhaustive]pub enum AdmitStage {
Accept,
Adopt,
Dialed,
}Expand description
When Gate::admit runs.
assert_ne!(net_io::AdmitStage::Accept, net_io::AdmitStage::Dialed);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.
Accept
After accept, before any read.
Adopt
A dialed connection adopted into a server.
Dialed
A client connection that got a gate.
Trait Implementations§
Source§impl Clone for AdmitStage
impl Clone for AdmitStage
impl Copy for AdmitStage
Source§impl Debug for AdmitStage
impl Debug for AdmitStage
impl Eq for AdmitStage
Source§impl Hash for AdmitStage
impl Hash for AdmitStage
Source§impl PartialEq for AdmitStage
impl PartialEq for AdmitStage
impl StructuralPartialEq for AdmitStage
Auto Trait Implementations§
impl Freeze for AdmitStage
impl RefUnwindSafe for AdmitStage
impl Send for AdmitStage
impl Sync for AdmitStage
impl Unpin for AdmitStage
impl UnsafeUnpin for AdmitStage
impl UnwindSafe for AdmitStage
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