Enum rfc5321::client::ClientError
source · pub enum ClientError {
Show 13 variants
Utf8(FromUtf8Error),
Io(Error),
MalformedResponseLine(String),
ResponseTooLong,
NotConnected,
Rejected(Response),
InvalidDnsName(String),
TimeOutResponse {
command: Option<Command>,
duration: Duration,
},
TimeOutRequest {
command: Command,
duration: Duration,
},
TimeOutData,
SslErrorStack(ErrorStack),
SslError(Error),
NoUsableDaneTlsa {
hostname: String,
tlsa: Vec<TLSA>,
},
}
Variants§
Utf8(FromUtf8Error)
Io(Error)
MalformedResponseLine(String)
ResponseTooLong
NotConnected
Rejected(Response)
InvalidDnsName(String)
TimeOutResponse
TimeOutRequest
TimeOutData
SslErrorStack(ErrorStack)
SslError(Error)
NoUsableDaneTlsa
Trait Implementations§
source§impl Debug for ClientError
impl Debug for ClientError
source§impl Display for ClientError
impl Display for ClientError
source§impl Error for ClientError
impl Error for ClientError
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<Error> for ClientError
impl From<Error> for ClientError
source§impl From<Error> for ClientError
impl From<Error> for ClientError
source§impl From<ErrorStack> for ClientError
impl From<ErrorStack> for ClientError
source§fn from(source: ErrorStack) -> Self
fn from(source: ErrorStack) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for ClientError
impl From<FromUtf8Error> for ClientError
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientError
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
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