pub enum Error {
Empty,
Invalid,
Run(String, Error),
Failed(String, ExitStatus),
Timeout(String, Duration),
NoOutput(String),
NotUtf8(String),
}Expand description
The password command is invalid or failed. Never contains its output.
Variants§
Empty
The list of arguments is empty, or the program is.
Invalid
The text is neither a JSON list of strings nor plain words.
Run(String, Error)
The command could not be started or read.
Failed(String, ExitStatus)
The command exited with an error.
Timeout(String, Duration)
The command did not finish in time and was stopped.
NoOutput(String)
The command printed nothing.
NotUtf8(String)
The command printed something that is not UTF-8.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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