pub enum FingerError {
DnsResolution {
host: String,
source: Error,
},
ConnectionFailed {
host: String,
port: u16,
source: Error,
},
Timeout {
host: String,
port: u16,
},
SendFailed {
source: Error,
},
ReadFailed {
source: Error,
},
}Expand description
Errors that can occur during a finger protocol exchange.
Variants§
DnsResolution
Failed to resolve the hostname.
ConnectionFailed
Failed to connect to the remote host.
Timeout
Connection timed out.
SendFailed
Failed to send the query.
ReadFailed
Failed to read the response.
Trait Implementations§
Source§impl Debug for FingerError
impl Debug for FingerError
Source§impl Display for FingerError
impl Display for FingerError
Source§impl Error for FingerError
impl Error for FingerError
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 Freeze for FingerError
impl !RefUnwindSafe for FingerError
impl Send for FingerError
impl Sync for FingerError
impl Unpin for FingerError
impl UnsafeUnpin for FingerError
impl !UnwindSafe for FingerError
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