pub struct SecretKey(/* private fields */);Expand description
32 字节密钥材料,析构时自动擦除。
刻意不实现 Copy/Clone,避免密钥在栈上留下无法追踪的副本;确实需要复制时用
SecretKey::duplicate,让复制行为在代码中显式可见。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for SecretKey
impl Freeze for SecretKey
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnsafeUnpin for SecretKey
impl UnwindSafe for SecretKey
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