Enum HandshakeError

enum HandshakeError<Role: HandshakeRole>

A handshake result.

Variants

Interrupted(MidHandshake<Role>)

Handshake was interrupted (would block).

Failure(crate::error::Error)

Handshake failed.

Implementations

impl<Role> Freeze for HandshakeError<Role>

impl<Role> RefUnwindSafe for HandshakeError<Role>

impl<Role> Send for HandshakeError<Role>

impl<Role> Sync for HandshakeError<Role>

impl<Role> Unpin for HandshakeError<Role>

impl<Role> UnsafeUnpin for HandshakeError<Role>

impl<Role> UnwindSafe for HandshakeError<Role>

impl<Role: HandshakeRole> Debug for HandshakeError<Role>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<Role: HandshakeRole> Display for HandshakeError<Role>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<Role: HandshakeRole> Error for HandshakeError<Role>

impl<Role: HandshakeRole> From for HandshakeError<Role>

fn from(err: Error) -> Self

impl<T> Any for HandshakeError<Role>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for HandshakeError<Role>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for HandshakeError<Role>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for HandshakeError<Role>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Same for HandshakeError<Role>

impl<T> ToString for HandshakeError<Role>

fn to_string(self: &Self) -> String

impl<T, U> Into for HandshakeError<Role>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for HandshakeError<Role>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for HandshakeError<Role>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip for HandshakeError<Role>

fn vzip(self: Self) -> V