Enum openssl::ssl::HandshakeError [−][src]
pub enum HandshakeError<S> {
SetupFailure(ErrorStack),
Failure(MidHandshakeSslStream<S>),
WouldBlock(MidHandshakeSslStream<S>),
}An error or intermediate state after a TLS handshake attempt.
Variants
SetupFailure(ErrorStack)Setup failed.
Failure(MidHandshakeSslStream<S>)The handshake failed.
WouldBlock(MidHandshakeSslStream<S>)The handshake encountered a WouldBlock error midway through.
This error will never be returned for blocking streams.
Trait Implementations
impl<S: Debug> Debug for HandshakeError<S>[src]
impl<S: Debug> Debug for HandshakeError<S>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<S: Debug> StdError for HandshakeError<S>[src]
impl<S: Debug> StdError for HandshakeError<S>fn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&StdError>[src]
fn cause(&self) -> Option<&StdError>The lower-level cause of this error, if any. Read more
impl<S: Debug> Display for HandshakeError<S>[src]
impl<S: Debug> Display for HandshakeError<S>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<S> From<ErrorStack> for HandshakeError<S>[src]
impl<S> From<ErrorStack> for HandshakeError<S>fn from(e: ErrorStack) -> HandshakeError<S>[src]
fn from(e: ErrorStack) -> HandshakeError<S>Performs the conversion.
Auto Trait Implementations
impl<S> Send for HandshakeError<S> where
S: Send,
impl<S> Send for HandshakeError<S> where
S: Send, impl<S> Sync for HandshakeError<S> where
S: Sync,
impl<S> Sync for HandshakeError<S> where
S: Sync,