signstar_host/download_key_certificates/
error.rs1#[derive(Debug, thiserror::Error)]
5pub enum Error {
6 #[cfg(not(any(feature = "nethsm", feature = "yubihsm2")))]
7 #[error("No HSM backend support compiled in")]
9 NoBackend,
10
11 #[cfg(any(feature = "nethsm", feature = "yubihsm2"))]
13 #[error("No connection set for the backend")]
14 NoConnection,
15
16 #[cfg(any(feature = "nethsm", feature = "yubihsm2"))]
18 #[error("No credentials for the system user {user}")]
19 NoCredentials {
20 user: String,
22 },
23
24 #[error("No credentials for the system user {user}")]
26 InvalidUser {
27 user: String,
29 },
30
31 #[error("Unsupported key context for signing key: {signing_key_id}")]
33 UnsupportedKeyContext {
34 signing_key_id: String,
36 },
37}