pub enum TorDNSELError {
Io(Error),
InvalidIpAddress(AddrParseError),
InvalidTimestamp(String),
InvalidExitAddressFormat(String),
}Expand description
Errors that can occur when parsing TorDNSEL exit lists.
TorDNSEL exit lists contain IP addresses of Tor exit relays.
Variants§
Io(Error)
IO error occurred while reading exit list.
InvalidIpAddress(AddrParseError)
IP address format is invalid.
InvalidTimestamp(String)
Timestamp format is invalid.
InvalidExitAddressFormat(String)
Exit address line format is invalid.
Trait Implementations§
Source§impl Debug for TorDNSELError
impl Debug for TorDNSELError
Source§impl Display for TorDNSELError
impl Display for TorDNSELError
Source§impl Error for TorDNSELError
impl Error for TorDNSELError
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 TorDNSELError
impl From<AddrParseError> for TorDNSELError
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for TorDNSELError
impl From<Error> for TorDNSELError
Source§impl From<TorDNSELError> for DescriptorError
impl From<TorDNSELError> for DescriptorError
Source§fn from(source: TorDNSELError) -> Self
fn from(source: TorDNSELError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TorDNSELError
impl !RefUnwindSafe for TorDNSELError
impl Send for TorDNSELError
impl Sync for TorDNSELError
impl Unpin for TorDNSELError
impl !UnwindSafe for TorDNSELError
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