Enum tor_consdiff::Error
source · #[non_exhaustive]
pub enum Error {
BadDiff(&'static str),
CantApply(&'static str),
}
Expand description
An error type from the tor-consdiff crate.
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.
BadDiff(&'static str)
We got a consensus diff that we couldn’t parse, or which we found to be somehow invalid.
CantApply(&'static str)
We got a consensus diff that looked valid, but we couldn’t apply it to the given input.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
source§fn from(_e: FromHexError) -> Error
fn from(_e: FromHexError) -> Error
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(_e: ParseIntError) -> Error
fn from(_e: ParseIntError) -> Error
Converts to this type from the input type.