pub enum QSocketError {
Show 14 variants
KnockFail,
KnockBusy,
InvalidKnockResponse,
CertificateFingerprintMismatch,
NotConnected,
IoError(Error),
TlsError(Error),
FromHex(FromHexError),
AddrParseFail(AddrParseError),
HttpParseFail(Error),
Base64DecodeFail(DecodeError),
FromUtf8Fail(FromUtf8Error),
RecvFail(RecvError),
PakeError,
}
Expand description
Default socket read/write timeout duration.
Variants§
KnockFail
KnockBusy
InvalidKnockResponse
CertificateFingerprintMismatch
NotConnected
IoError(Error)
TlsError(Error)
FromHex(FromHexError)
AddrParseFail(AddrParseError)
HttpParseFail(Error)
Base64DecodeFail(DecodeError)
FromUtf8Fail(FromUtf8Error)
RecvFail(RecvError)
PakeError
Trait Implementations§
Source§impl Debug for QSocketError
impl Debug for QSocketError
Source§impl Display for QSocketError
impl Display for QSocketError
Source§impl Error for QSocketError
impl Error for QSocketError
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<AddrParseError> for QSocketError
impl From<AddrParseError> for QSocketError
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for QSocketError
impl From<DecodeError> for QSocketError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for QSocketError
impl From<Error> for QSocketError
Source§impl From<Error> for QSocketError
impl From<Error> for QSocketError
Source§impl From<Error> for QSocketError
impl From<Error> for QSocketError
Source§impl From<FromHexError> for QSocketError
impl From<FromHexError> for QSocketError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for QSocketError
impl From<FromUtf8Error> for QSocketError
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 QSocketError
impl !RefUnwindSafe for QSocketError
impl Send for QSocketError
impl Sync for QSocketError
impl Unpin for QSocketError
impl !UnwindSafe for QSocketError
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