pub enum KxcError {
Io(Error),
Json(Error),
Base64(DecodeError),
Crypto,
SocketNotFound(String),
NoPeerKey,
NonceMismatch,
KeePassXc {
code: Option<i64>,
message: String,
},
NotAssociated,
DatabaseLocked,
UnexpectedResponse {
action: String,
detail: String,
},
ConnectionClosed,
}Variants§
Io(Error)
Json(Error)
Base64(DecodeError)
Crypto
SocketNotFound(String)
NoPeerKey
NonceMismatch
KeePassXc
NotAssociated
DatabaseLocked
UnexpectedResponse
ConnectionClosed
Trait Implementations§
Source§impl Error for KxcError
impl Error for KxcError
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<DecodeError> for KxcError
impl From<DecodeError> for KxcError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for KxcError
impl !UnwindSafe for KxcError
impl Freeze for KxcError
impl Send for KxcError
impl Sync for KxcError
impl Unpin for KxcError
impl UnsafeUnpin for KxcError
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