Enum tor_config::InvalidListen
source · #[non_exhaustive]pub enum InvalidListen {
InvalidBool,
InvalidString(AddrParseError),
ZeroPortInList,
}
Expand description
Listen configuration is invalid
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidBool
Bool was true
but that’s not an address.
InvalidString(AddrParseError)
Specified listen was a string but couldn’t parse to a net::SocketAddr
.
ZeroPortInList
Specified listen was a list containing a zero integer
Trait Implementations§
source§impl Clone for InvalidListen
impl Clone for InvalidListen
source§fn clone(&self) -> InvalidListen
fn clone(&self) -> InvalidListen
Returns a copy 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 InvalidListen
impl Debug for InvalidListen
source§impl Display for InvalidListen
impl Display for InvalidListen
source§impl Error for InvalidListen
impl Error for InvalidListen
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 InvalidListen
impl From<AddrParseError> for InvalidListen
source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for InvalidListen
impl Send for InvalidListen
impl Sync for InvalidListen
impl Unpin for InvalidListen
impl UnwindSafe for InvalidListen
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