pub enum Error {
CredentialsLoading {
system_user: SystemUserId,
errors: CredentialsLoadingErrors,
},
CredentialsMissing {
system_user: SystemUserId,
},
NoSystemUser,
NotSigningUser,
SecretsDirCreate {
path: PathBuf,
system_user: SystemUserId,
source: Error,
},
SecretsFileCreate {
path: PathBuf,
system_user: SystemUserId,
source: Error,
},
SecretsFileMetadata {
path: PathBuf,
source: Error,
},
SecretsFileMissing {
path: PathBuf,
},
SecretsFileNotAFile {
path: PathBuf,
},
SecretsFilePermissions {
path: PathBuf,
mode: u32,
},
SecretsFileRead {
path: PathBuf,
source: Error,
},
SecretsFileWrite {
path: PathBuf,
system_user: SystemUserId,
source: Error,
},
}
Expand description
An error that may occur when handling non-administrative credentials for a NetHSM backend.
Variants§
CredentialsLoading
There are one or more errors when loading credentials for a specific system user.
Fields
system_user: SystemUserId
The system user for which loading of backend user credentials led to errors.
errors: CredentialsLoadingErrors
The errors that occurred during loading of backend user credentials for system_user
.
CredentialsMissing
There are no credentials for a specific system user.
Fields
system_user: SystemUserId
The system user for which credentials are missing.
NoSystemUser
A mapping does not offer a system user.
NotSigningUser
A user is not a signing user for the NetHSM backend.
SecretsDirCreate
A passphrase directory can not be created.
Fields
system_user: SystemUserId
The system user in whose home directory path
could not be created.
SecretsFileCreate
A secrets file can not be created.
Fields
system_user: SystemUserId
The system user in whose home directory path
could not be created.
SecretsFileMetadata
The file metadata of a secrets file cannot be retrieved.
Fields
SecretsFileMissing
A secrets file does not exist.
SecretsFileNotAFile
A secrets file is not a file.
SecretsFilePermissions
A secrets file does not have the correct permissions.
Fields
SecretsFileRead
A secrets file cannot be read.
Fields
SecretsFileWrite
A secrets file can not be written to.
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
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more