pub enum HandshakeStatus {
Complete,
WantRead,
WantWrite,
}Expand description
Handshake progress, as observed from the uniform API.
Variants§
Complete
The handshake is complete; application data may flow.
WantRead
The engine has nothing to emit; the caller should
feed bytes from the peer.
WantWrite
The engine has wire bytes ready; the caller should drain them with
pop and forward them to the peer.
Trait Implementations§
Source§impl Clone for HandshakeStatus
impl Clone for HandshakeStatus
Source§fn clone(&self) -> HandshakeStatus
fn clone(&self) -> HandshakeStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HandshakeStatus
Source§impl Debug for HandshakeStatus
impl Debug for HandshakeStatus
impl Eq for HandshakeStatus
Source§impl PartialEq for HandshakeStatus
impl PartialEq for HandshakeStatus
Source§fn eq(&self, other: &HandshakeStatus) -> bool
fn eq(&self, other: &HandshakeStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HandshakeStatus
Auto Trait Implementations§
impl Freeze for HandshakeStatus
impl RefUnwindSafe for HandshakeStatus
impl Send for HandshakeStatus
impl Sync for HandshakeStatus
impl Unpin for HandshakeStatus
impl UnsafeUnpin for HandshakeStatus
impl UnwindSafe for HandshakeStatus
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