pub enum HandshakeProgress {
Pending(EncryptedLinkHandshake),
Complete(EncryptedLink),
}Expand description
Result of a single advance_handshake step.
Variants§
Pending(EncryptedLinkHandshake)
Handshake is still in progress. The counterparty may not have written
their next message yet. Pass the returned handle back to
advance_handshake after a caller-chosen delay.
Complete(EncryptedLink)
Handshake completed successfully. The EncryptedLink is ready to send
and receive Private Application Messages.
Auto Trait Implementations§
impl !RefUnwindSafe for HandshakeProgress
impl !UnwindSafe for HandshakeProgress
impl Freeze for HandshakeProgress
impl Send for HandshakeProgress
impl Sync for HandshakeProgress
impl Unpin for HandshakeProgress
impl UnsafeUnpin for HandshakeProgress
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