Enum tor_linkspec::RelayIdError
source · #[non_exhaustive]
pub enum RelayIdError {
UnrecognizedIdType,
BadBase64,
BadHex,
BadLength,
}Expand description
An error returned while trying to parse a RelayId.
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.
UnrecognizedIdType
We didn’t recognize the type of a relay identity.
This can happen when a type that we have never heard of is specified, or when a type
BadBase64
We encountered base64 data that we couldn’t parse.
BadHex
We encountered hex data that we couldn’t parse.
BadLength
We got a key that was the wrong length.
Trait Implementations§
source§impl Clone for RelayIdError
impl Clone for RelayIdError
source§fn clone(&self) -> RelayIdError
fn clone(&self) -> RelayIdError
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 RelayIdError
impl Debug for RelayIdError
source§impl Display for RelayIdError
impl Display for RelayIdError
source§impl Error for RelayIdError
impl Error for RelayIdError
1.30.0 · 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()