pub enum CompletersError {
ShellCode(ShellCodeError),
MissingField,
InvalidValue {
field: String,
value: String,
what: String,
},
UnrecognizedEnvVar(String),
Custom(String),
}Expand description
Possible errors that can occur.
Variants§
ShellCode(ShellCodeError)
Error while generating shell code.
MissingField
The completion request is missing a required field.
InvalidValue
The completion request contains an invalid value for some field.
Fields
UnrecognizedEnvVar(String)
Unrecognized environment variable value.
Custom(String)
Custom error message.
Trait Implementations§
Source§impl Debug for CompletersError
impl Debug for CompletersError
Source§impl Display for CompletersError
impl Display for CompletersError
Source§impl Error for CompletersError
impl Error for CompletersError
1.30.0 · 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()
Source§impl From<ShellCodeError> for CompletersError
impl From<ShellCodeError> for CompletersError
Source§fn from(err: ShellCodeError) -> Self
fn from(err: ShellCodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CompletersError
impl !RefUnwindSafe for CompletersError
impl Send for CompletersError
impl Sync for CompletersError
impl Unpin for CompletersError
impl !UnwindSafe for CompletersError
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