pub enum Error {
Show 14 variants
AdminSecretHandling(Error),
ApplyPermissions {
path: PathBuf,
mode: u32,
source: Error,
},
Chown {
path: PathBuf,
user: String,
source: Error,
},
CommandAttachToStdin {
command: String,
},
CommandBackground {
command: String,
source: Error,
},
CommandExec {
command: String,
source: Error,
},
CommandNonZero {
command: String,
exit_status: ExitStatus,
stderr: String,
},
CommandWriteToStdin {
command: String,
source: Error,
},
Config(Error),
NonAdminSecretHandling(Error),
SignstarCommonAdminCreds(Error),
Thread {
context: String,
},
Utf8String {
path: PathBuf,
context: String,
source: FromUtf8Error,
},
Utils(Error),
}
Expand description
An error that may occur when using Signstar config.
Variants§
AdminSecretHandling(Error)
An error specific to administrative secret handling.
ApplyPermissions
An error specific to Signstar config handling. Applying permissions to a file or directory failed.
Fields
Chown
The ownership of a path can not be changed.
Fields
CommandAttachToStdin
Unable to attach to stdin of a command.
CommandBackground
A command exited unsuccessfully.
Fields
CommandExec
A command could not be executed.
CommandNonZero
A command exited unsuccessfully.
Fields
exit_status: ExitStatus
The exit status of command
.
CommandWriteToStdin
Unable to write to stdin of a command.
Fields
Config(Error)
Configuration errors.
NonAdminSecretHandling(Error)
An error specific to non-administrative secret handling.
SignstarCommonAdminCreds(Error)
Low-level administrative credentials handling in signstar-common failed.
Thread
Joining a thread returned an error.
Fields
Utf8String
A UTF-8 error occurred when trying to convert a byte vector to a string.
Fields
context: String
The context in which the error occurred.
Should complete the sentence “Converting contents of path
to string failed while “
source: FromUtf8Error
The source error.
Utils(Error)
A utility function returned an error.
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