pub enum BindingError {
Show 13 variants
Malformed,
BindingSignatureInvalid,
WrongUse,
KeyMismatch,
Expired,
NotYetValid,
NodeIdMismatch,
StatusSignatureInvalid,
StatusBindingMismatch,
StatusExpired,
StatusFutureDated,
ValidityWindow,
Key(KeyError),
}Expand description
The refusals of the binding and status checks, named as macula names them.
Variants§
Malformed
A signed structure of the wrong shape: not exactly {tbs, signature},
or a tbs that the decoding rule refuses, with a key its structure does
not define, or a field of the wrong type, length or range.
BindingSignatureInvalid
A binding whose signature does not verify under its use’s label.
WrongUse
A binding whose label or use is another use’s.
KeyMismatch
A binding whose subject is not the leaf or CONNECT key it came with.
Expired
A binding more than 5 minutes past its not_after.
NotYetValid
A binding more than 5 minutes before its not_before.
NodeIdMismatch
A binding or statement naming a node_id other than the identity key’s.
StatusSignatureInvalid
A status statement whose signature does not verify.
StatusBindingMismatch
A status statement for another binding.
StatusExpired
A status statement more than 5 minutes past its expiry.
StatusFutureDated
A status statement issued more than 5 minutes ahead.
ValidityWindow
A window a verifier would refuse: negative, backwards, at 2^53 or later, or longer than 7 days for a binding and an hour for a statement.
Key(KeyError)
The signing key could not sign, or is not an identity key.
Trait Implementations§
Source§impl Clone for BindingError
impl Clone for BindingError
Source§impl Debug for BindingError
impl Debug for BindingError
Source§impl Display for BindingError
impl Display for BindingError
impl Eq for BindingError
Source§impl Error for BindingError
impl Error for BindingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()