Enum tungstenite::handshake::HandshakeError [−][src]
pub enum HandshakeError<Role: HandshakeRole> { Interrupted(MidHandshake<Role>), Failure(Error), }
A handshake result.
Variants
Interrupted(MidHandshake<Role>)
Handshake was interrupted (would block).
Failure(Error)
Handshake failed.
Trait Implementations
impl<Role: HandshakeRole> Debug for HandshakeError<Role>
[src]
impl<Role: HandshakeRole> Debug for HandshakeError<Role>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Role: HandshakeRole> Display for HandshakeError<Role>
[src]
impl<Role: HandshakeRole> Display for HandshakeError<Role>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Role: HandshakeRole> ErrorTrait for HandshakeError<Role>
[src]
impl<Role: HandshakeRole> ErrorTrait for HandshakeError<Role>
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl<Role: HandshakeRole> From<Error> for HandshakeError<Role>
[src]
impl<Role: HandshakeRole> From<Error> for HandshakeError<Role>
Auto Trait Implementations
impl<Role> Send for HandshakeError<Role> where
Role: Send,
<Role as HandshakeRole>::InternalStream: Send,
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,
impl<Role> Sync for HandshakeError<Role> where
Role: Sync,
<Role as HandshakeRole>::InternalStream: Sync,