Enum h2::server::Handshaking
source · enum Handshaking<T, B: Buf> {
Flushing(Instrumented<Flush<T, Prioritized<B>>>),
ReadingPreface(Instrumented<ReadPreface<T, Prioritized<B>>>),
Done,
}
Expand description
Stages of an in-progress handshake.
Variants§
Flushing(Instrumented<Flush<T, Prioritized<B>>>)
State 1. Connection is flushing pending SETTINGS frame.
ReadingPreface(Instrumented<ReadPreface<T, Prioritized<B>>>)
State 2. Connection is waiting for the client preface.
Done
State 3. Handshake is done, polling again would panic.
Trait Implementations§
Auto Trait Implementations§
impl<T, B> !Freeze for Handshaking<T, B>
impl<T, B> !RefUnwindSafe for Handshaking<T, B>
impl<T, B> Send for Handshaking<T, B>
impl<T, B> Sync for Handshaking<T, B>
impl<T, B> Unpin for Handshaking<T, B>where
T: Unpin,
impl<T, B> !UnwindSafe for Handshaking<T, B>
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