Skip to main content

wire_e2e_identity/
error.rs

1// We allow missing documentation in the error module because the types are generally
2// self-descriptive.
3#![allow(missing_docs)]
4
5pub type E2eIdentityResult<T> = Result<T, E2eIdentityError>;
6
7#[derive(Debug, thiserror::Error)]
8pub enum E2eIdentityError {
9    #[error(transparent)]
10    AcmeError(#[from] crate::acme::Error),
11    #[error(transparent)]
12    JwtError(#[from] rusty_jwt_tools::prelude::RustyJwtError),
13    #[error(transparent)]
14    JwtSimpleError(#[from] jwt_simple::Error),
15    #[error(transparent)]
16    PkiEnvError(#[from] crate::pki_env::Error),
17    #[error(transparent)]
18    ValidationError(#[from] crate::validation::Error),
19}