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]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for OptionError
[src]

fn fmt(&self, formatter: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Error for OptionError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more