Enum tungstenite::handshake::HandshakeError[][src]

pub enum HandshakeError<Role: HandshakeRole> {
    Interrupted(MidHandshake<Role>),
    Failure(Error),
}

A handshake result.

Variants

Handshake was interrupted (would block).

Handshake failed.

Trait Implementations

impl<Role: HandshakeRole> Debug for HandshakeError<Role>
[src]

Formats the value using the given formatter. Read more

impl<Role: HandshakeRole> Display for HandshakeError<Role>
[src]

Formats the value using the given formatter. Read more

impl<Role: HandshakeRole> ErrorTrait for HandshakeError<Role>
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl<Role: HandshakeRole> From<Error> for HandshakeError<Role>
[src]

Performs the conversion.

Auto Trait Implementations

impl<Role> Send for HandshakeError<Role> where
    Role: Send,
    <Role as HandshakeRole>::InternalStream: Send

impl<Role> Sync for HandshakeError<Role> where
    Role: Sync,
    <Role as HandshakeRole>::InternalStream: Sync