Enum ntex::connect::openssl::HandshakeError [−][src]
pub enum HandshakeError<S> { SetupFailure(ErrorStack), Failure(MidHandshakeSslStream<S>), WouldBlock(MidHandshakeSslStream<S>), }
Expand description
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 for HandshakeError<S> where
S: Debug,
[src]
impl<S> Debug for HandshakeError<S> where
S: Debug,
[src]impl<S> Display for HandshakeError<S> where
S: Debug,
[src]
impl<S> Display for HandshakeError<S> where
S: Debug,
[src]impl<S> Error for HandshakeError<S> where
S: Debug,
[src]
impl<S> Error for HandshakeError<S> where
S: Debug,
[src]pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl<S> From<ErrorStack> for HandshakeError<S>
[src]
impl<S> From<ErrorStack> for HandshakeError<S>
[src]pub fn from(e: ErrorStack) -> HandshakeError<S>
[src]
pub fn from(e: ErrorStack) -> HandshakeError<S>
[src]Performs the conversion.
impl<T: Debug> From<HandshakeError<T>> for ConnectError
[src]
impl<T: Debug> From<HandshakeError<T>> for ConnectError
[src]fn from(err: HandshakeError<T>) -> ConnectError
[src]
fn from(err: HandshakeError<T>) -> ConnectError
[src]Performs the conversion.
impl<T: Debug + 'static> WebResponseError<DefaultError> for HandshakeError<T>
[src]
impl<T: Debug + 'static> WebResponseError<DefaultError> for HandshakeError<T>
[src]InternalServerError
for openssl::ssl::HandshakeError
fn status_code(&self) -> StatusCode
[src]
fn status_code(&self) -> StatusCode
[src]Response’s status code Read more
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]Generate response for error Read more
Auto Trait Implementations
impl<S> !RefUnwindSafe for HandshakeError<S>
impl<S> Send for HandshakeError<S> where
S: Send,
S: Send,
impl<S> Sync for HandshakeError<S> where
S: Sync,
S: Sync,
impl<S> Unpin for HandshakeError<S> where
S: Unpin,
S: Unpin,
impl<S> !UnwindSafe for HandshakeError<S>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self