pub enum AcceptError<TlsError = NoServerIdentity, AuthenticationError = Infallible> {
Io(Error),
UnsupportedProtocolVersion,
TlsRequired,
TlsIdentity(TlsError),
Authentication(AuthenticationError),
AuthenticationProtocol,
}Expand description
Failures while establishing a live server-role connection.
Variants§
Io(Error)
The transport failed or the peer sent invalid wire data.
UnsupportedProtocolVersion
The startup packet requested an unsupported protocol major version.
TlsRequired
The configured policy requires TLS before startup.
TlsIdentity(TlsError)
The current TLS identity could not be resolved.
Authentication(AuthenticationError)
Application authentication rejected the connection.
AuthenticationProtocol
The client sent a message invalid for the selected authentication mechanism.
Trait Implementations§
Source§impl<TlsError: Debug, AuthenticationError: Debug> Debug for AcceptError<TlsError, AuthenticationError>
impl<TlsError: Debug, AuthenticationError: Debug> Debug for AcceptError<TlsError, AuthenticationError>
Source§impl<TlsError, AuthenticationError> Display for AcceptError<TlsError, AuthenticationError>
impl<TlsError, AuthenticationError> Display for AcceptError<TlsError, AuthenticationError>
Source§impl<TlsError, AuthenticationError> Error for AcceptError<TlsError, AuthenticationError>
impl<TlsError, AuthenticationError> Error for AcceptError<TlsError, AuthenticationError>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<TlsError = NoServerIdentity, AuthenticationError = Infallible> !RefUnwindSafe for AcceptError<TlsError, AuthenticationError>
impl<TlsError = NoServerIdentity, AuthenticationError = Infallible> !UnwindSafe for AcceptError<TlsError, AuthenticationError>
impl<TlsError, AuthenticationError> Freeze for AcceptError<TlsError, AuthenticationError>
impl<TlsError, AuthenticationError> Send for AcceptError<TlsError, AuthenticationError>
impl<TlsError, AuthenticationError> Sync for AcceptError<TlsError, AuthenticationError>
impl<TlsError, AuthenticationError> Unpin for AcceptError<TlsError, AuthenticationError>
impl<TlsError, AuthenticationError> UnsafeUnpin for AcceptError<TlsError, AuthenticationError>where
TlsError: UnsafeUnpin,
AuthenticationError: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more