pub enum OptionError {
MissingRequiredOption(String),
InvalidValue {
option_name: String,
value: String,
expected_value: String,
},
VerbatimError(String),
}
Variants§
Implementations§
Source§impl OptionError
impl OptionError
pub fn missing_required_option<S: Into<String>>(option_name: S) -> OptionError
pub fn invalid_value<S: Into<String>>( option_name: S, value: S, expected_value: S, ) -> OptionError
pub fn verbatim_error(error_msg: String) -> OptionError
Trait Implementations§
Source§impl Debug for OptionError
impl Debug for OptionError
Source§impl Display for OptionError
impl Display for OptionError
Source§impl Error for OptionError
impl Error for OptionError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl PartialEq for OptionError
impl PartialEq for OptionError
impl Eq for OptionError
impl StructuralPartialEq for OptionError
Auto Trait Implementations§
impl Freeze for OptionError
impl RefUnwindSafe for OptionError
impl Send for OptionError
impl Sync for OptionError
impl Unpin for OptionError
impl UnwindSafe for OptionError
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