pub struct Aes256GcmKey(/* private fields */);Implementations§
Source§impl Aes256GcmKey
impl Aes256GcmKey
pub fn new(key: [u8; 32]) -> Self
pub fn from_base64(key_b64: &str) -> Result<Self, EncryptionSpecError>
Trait Implementations§
Source§impl Clone for Aes256GcmKey
impl Clone for Aes256GcmKey
Source§fn clone(&self) -> Aes256GcmKey
fn clone(&self) -> Aes256GcmKey
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 moreAuto Trait Implementations§
impl Freeze for Aes256GcmKey
impl RefUnwindSafe for Aes256GcmKey
impl Send for Aes256GcmKey
impl Sync for Aes256GcmKey
impl Unpin for Aes256GcmKey
impl UnsafeUnpin for Aes256GcmKey
impl UnwindSafe for Aes256GcmKey
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