pub enum ConfigError {
InvalidConfigValue {
field_name: String,
value: String,
reason: String,
},
MissingRequiredConfig {
field_name: String,
field_type: String,
possible_values: Vec<String>,
},
UnrecognizedConfig {
field_name: String,
field_value: String,
possible_confusables: Vec<String>,
},
Unspecified {
message: String,
},
InternalError {
message: String,
},
FileNotFound {
file_path: String,
},
ParseError {
source: String,
message: String,
},
EnvVarNotSet {
env_var_name: String,
purpose: String,
},
MissingProgram {
program_name: String,
},
}
Expand description
Errors specific to the execution of Plugin::set_configuration()
to configure a Hipcheck
plugin.
Variants§
InvalidConfigValue
The config key was valid, but the associated value was invalid
MissingRequiredConfig
The config was missing an expected field
UnrecognizedConfig
The config included an unrecognized field
Unspecified
An unspecified error
InternalError
The plugin encountered an error, probably due to incorrect assumptions.
FileNotFound
A necessary plugin input file was not found.
ParseError
The plugin’s input data could not be parsed correctly.
EnvVarNotSet
An environment variable needed by the plugin was not set.
Fields
MissingProgram
The plugin could not run a needed program.
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl From<ConfigError> for SetConfigurationResponse
impl From<ConfigError> for SetConfigurationResponse
Source§fn from(value: ConfigError) -> Self
fn from(value: ConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConfigError
impl RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnwindSafe for ConfigError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request