pub struct HaysonCipherError {
pub table: String,
pub field: String,
pub reason: String,
pub key_id: Option<String>,
}Expand description
A cypher field failed to seal/open, or the keyring passed to open() is itself unusable.
table empty means the second case — the message drops the “of table” clause then.
Fields§
§table: String§field: String§reason: String§key_id: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for HaysonCipherError
impl Clone for HaysonCipherError
Source§impl Debug for HaysonCipherError
impl Debug for HaysonCipherError
Source§impl Display for HaysonCipherError
impl Display for HaysonCipherError
impl Eq for HaysonCipherError
Source§impl Error for HaysonCipherError
impl Error for HaysonCipherError
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<HaysonCipherError> for DatabaseError
impl From<HaysonCipherError> for DatabaseError
Source§fn from(value: HaysonCipherError) -> Self
fn from(value: HaysonCipherError) -> Self
Converts to this type from the input type.
Source§impl From<HaysonCipherError> for RecordSourceError
impl From<HaysonCipherError> for RecordSourceError
Source§fn from(value: HaysonCipherError) -> Self
fn from(value: HaysonCipherError) -> Self
Converts to this type from the input type.
Source§impl From<HaysonCipherError> for TableError
impl From<HaysonCipherError> for TableError
Source§fn from(value: HaysonCipherError) -> Self
fn from(value: HaysonCipherError) -> Self
Converts to this type from the input type.
Source§impl From<HaysonCipherError> for CommitError
impl From<HaysonCipherError> for CommitError
Source§fn from(value: HaysonCipherError) -> Self
fn from(value: HaysonCipherError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HaysonCipherError
impl PartialEq for HaysonCipherError
impl StructuralPartialEq for HaysonCipherError
Auto Trait Implementations§
impl Freeze for HaysonCipherError
impl RefUnwindSafe for HaysonCipherError
impl Send for HaysonCipherError
impl Sync for HaysonCipherError
impl Unpin for HaysonCipherError
impl UnsafeUnpin for HaysonCipherError
impl UnwindSafe for HaysonCipherError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.