pub struct Password(/* private fields */);Expand description
A pbkdf2.password: an imported password, minted by
pbkdf2::import_password. Never readable back through the API under
any grant; the grants recorded at import are copied onto every
DeriveInput built on it (via pbkdf2_sha2::prepare and friends).
Implementations§
Source§impl Password
impl Password
Sourcepub fn can_derive_bits(&self) -> bool
pub fn can_derive_bits(&self) -> bool
Whether inputs built on this password may yield raw bits. See
DeriveOptions::derive_bits.
Sourcepub fn can_derive_key(&self) -> bool
pub fn can_derive_key(&self) -> bool
Whether inputs built on this password may mint keys. See
DeriveOptions::derive_key.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Password
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnsafeUnpin for Password
impl UnwindSafe for Password
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