pub enum BitwError {
CliNotFound,
LoginFailed {
status: i32,
stderr: String,
},
UnlockFailed {
status: i32,
stderr: String,
},
LockFailed {
status: i32,
stderr: String,
},
ListFailed {
status: i32,
stderr: String,
},
SessionTokenMissing,
ParseError(String),
Config(String),
}Expand description
Errors that can occur during a Bitwarden pull operation.
Variants§
CliNotFound
The bw CLI binary was not found on PATH.
LoginFailed
bw login exited with a non-zero status.
UnlockFailed
bw unlock exited with a non-zero status.
LockFailed
bw lock (cleanup) exited with a non-zero status — non-fatal, logged only.
ListFailed
bw list items exited with a non-zero status.
SessionTokenMissing
The session token output from bw unlock could not be extracted.
ParseError(String)
The JSON output from bw list items could not be parsed.
Config(String)
A required configuration value (client_id, client_secret, password env) is missing.
Trait Implementations§
Source§impl Error for BitwError
impl Error for BitwError
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()
Auto Trait Implementations§
impl Freeze for BitwError
impl RefUnwindSafe for BitwError
impl Send for BitwError
impl Sync for BitwError
impl Unpin for BitwError
impl UnsafeUnpin for BitwError
impl UnwindSafe for BitwError
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