pub struct MasterKey(pub [u8; 32]);Tuple Fields§
§0: [u8; 32]Implementations§
Source§impl MasterKey
impl MasterKey
pub fn from_raw_key(raw_key: &[u8]) -> Result<Self, FormatError>
pub fn derive_from_passphrase( params: &KdfParams, passphrase: &str, ) -> Result<Self, FormatError>
Trait Implementations§
impl Eq for MasterKey
impl StructuralPartialEq for MasterKey
Auto Trait Implementations§
impl Freeze for MasterKey
impl RefUnwindSafe for MasterKey
impl Send for MasterKey
impl Sync for MasterKey
impl Unpin for MasterKey
impl UnsafeUnpin for MasterKey
impl UnwindSafe for MasterKey
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