pub enum TlsSocketError {
TlsError(TlsError),
SocketError(SocketError),
}
Expand description
An error that can occur with a TLS socket.
It can either be a TlsError
or a SocketError
from the
underlying socket.
Variants§
Implementations§
Source§impl TlsSocketError
impl TlsSocketError
Sourcepub fn is_tls_error(&self) -> bool
pub fn is_tls_error(&self) -> bool
Returns true
if the error is a TlsError
.
Sourcepub fn is_socket_error(&self) -> bool
pub fn is_socket_error(&self) -> bool
Returns true
if the error is a SocketError
.
Trait Implementations§
Source§impl Clone for TlsSocketError
impl Clone for TlsSocketError
Source§fn clone(&self) -> TlsSocketError
fn clone(&self) -> TlsSocketError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TlsSocketError
impl Debug for TlsSocketError
Source§impl Display for TlsSocketError
impl Display for TlsSocketError
Source§impl Error for TlsSocketError
impl Error for TlsSocketError
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()
Source§impl From<SocketError> for TlsSocketError
impl From<SocketError> for TlsSocketError
Source§fn from(source: SocketError) -> Self
fn from(source: SocketError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TlsSocketError
impl RefUnwindSafe for TlsSocketError
impl Send for TlsSocketError
impl Sync for TlsSocketError
impl Unpin for TlsSocketError
impl UnwindSafe for TlsSocketError
Blanket Implementations§
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