pub enum AnyKeyWrapper {
Argon2id(Argon2idKeyWrapper),
Pgp(PgpKeyWrapper),
Age(AgeKeyWrapper),
}Variants§
Implementations§
Source§impl AnyKeyWrapper
impl AnyKeyWrapper
pub fn as_kdf_based(&self) -> Option<&dyn KdfBasedKeyWrapper>
pub fn expect_kdf_based(&self) -> Result<&dyn KdfBasedKeyWrapper, Error>
Trait Implementations§
Source§impl Clone for AnyKeyWrapper
impl Clone for AnyKeyWrapper
Source§fn clone(&self) -> AnyKeyWrapper
fn clone(&self) -> AnyKeyWrapper
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for AnyKeyWrapper
impl<'de> Deserialize<'de> for AnyKeyWrapper
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl KeyWrapper for AnyKeyWrapper
impl KeyWrapper for AnyKeyWrapper
Auto Trait Implementations§
impl Freeze for AnyKeyWrapper
impl RefUnwindSafe for AnyKeyWrapper
impl Send for AnyKeyWrapper
impl Sync for AnyKeyWrapper
impl Unpin for AnyKeyWrapper
impl UnsafeUnpin for AnyKeyWrapper
impl UnwindSafe for AnyKeyWrapper
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