pub enum Icinga2InstanceFileError {
ReadDir(Error),
ReadFile(Error),
Parse {
path: PathBuf,
source: Error,
},
PasswordCommandEmpty,
PasswordCommandExec {
command: String,
source: Error,
},
PasswordCommandFailed {
command: String,
exit_code: Option<i32>,
},
PasswordCommandTimeout {
command: String,
timeout: Duration,
},
PasswordCommandOutput {
command: String,
source: FromUtf8Error,
},
PasswordCommandNoPassword {
command: String,
},
ReadClientCertificate(Error),
Client(Error),
}Expand description
errors when loading instance config files or resolving their auth
Variants§
ReadDir(Error)
could not read the instance config directory
ReadFile(Error)
could not read an instance config file
Parse
could not parse an instance config file
PasswordCommandEmpty
the password command is empty
PasswordCommandExec
the password command could not be started
PasswordCommandFailed
the password command failed
Fields
PasswordCommandTimeout
the password command did not finish in time
PasswordCommandOutput
the password command output was not UTF-8
PasswordCommandNoPassword
the password command printed nothing
ReadClientCertificate(Error)
could not read the client certificate or key
Client(Error)
could not build the client
Trait Implementations§
Source§impl Debug for Icinga2InstanceFileError
impl Debug for Icinga2InstanceFileError
Source§impl Display for Icinga2InstanceFileError
impl Display for Icinga2InstanceFileError
Source§impl Error for Icinga2InstanceFileError
impl Error for Icinga2InstanceFileError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for Icinga2InstanceFileError
impl !UnwindSafe for Icinga2InstanceFileError
impl Forget for Icinga2InstanceFileError
impl Freeze for Icinga2InstanceFileError
impl Move for Icinga2InstanceFileError
impl Send for Icinga2InstanceFileError
impl Sync for Icinga2InstanceFileError
impl Unpin for Icinga2InstanceFileError
impl UnsafeUnpin for Icinga2InstanceFileError
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
Mutably borrows from an owned value. Read more