pub enum Error {
Show 16 variants
WrongAudience,
WrongIssuer,
Expired,
NotYetValid,
UnpublishedKey(String),
Signature(SignatureError),
Encoding(DecodeError),
Json(Error),
RightsOutsideAudience,
Truncated(String),
Invalid(&'static str),
Transport(Box<dyn Error + Send + Sync>),
CannotAsk(&'static str),
Url(ParseError),
Binding {
name: &'static str,
reason: &'static str,
},
TokenRefused {
name: String,
reason: String,
},
}Expand description
A named refusal at a token, key or live-contract boundary.
Variants§
WrongAudience
The signed audience differs from the product.
WrongIssuer
The signed issuer differs from the trusted issuer.
Expired
The pass has reached its expiry.
NotYetValid
The pass starts in the future.
UnpublishedKey(String)
No published verification key has this id.
Signature(SignatureError)
Strict signature verification failed.
Encoding(DecodeError)
A compact token segment was not canonical base64url.
Json(Error)
A signed claim or published key could not be read.
RightsOutsideAudience
A pass contains another application’s rights.
Truncated(String)
The issuer omitted rights for this application.
Invalid(&'static str)
A boundary value violates the published contract.
Transport(Box<dyn Error + Send + Sync>)
A live request failed before a contract answer was received. The
transport’s own error, typed by no HTTP stack, so the variant stands
whether or not the http feature is on.
CannotAsk(&'static str)
A live response is outside the permission contract.
Url(ParseError)
A supplied endpoint is malformed.
Binding
A pass’s grant binding is absent, unsupported or not the pass’s (DIRECTORY-089 R2), by its stable name.
TokenRefused
A named issuer refusal of the exchange or refresh.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()