Enum syslog_ng_common::OptionError
[−]
[src]
pub enum OptionError { MissingRequiredOption(String), InvalidValue { option_name: String, value: String, expected_value: String, }, VerbatimError(String), }
Variants
MissingRequiredOption(String)
InvalidValue
Fields
option_name: String | |
value: String | |
expected_value: String |
VerbatimError(String)
Methods
impl OptionError
[src]
fn missing_required_option<S: Into<String>>(option_name: S) -> OptionError
fn invalid_value<S: Into<String>>(option_name: S, value: S, expected_value: S) -> OptionError
fn verbatim_error(error_msg: String) -> OptionError
Trait Implementations
impl Eq for OptionError
[src]
impl PartialEq for OptionError
[src]
fn eq(&self, __arg_0: &OptionError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &OptionError) -> bool
This method tests for !=
.
impl Debug for OptionError
[src]
impl Display for OptionError
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.