pub struct ZeroGuard<'a>(/* private fields */);Expand description
Guard that invokes explicit initialized-byte clearing when dropped
Drop invokes secure_zero on the contained buffer. The same compiler
and out-of-scope-copy limitations documented there apply.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for ZeroGuard<'a>
impl<'a> Freeze for ZeroGuard<'a>
impl<'a> RefUnwindSafe for ZeroGuard<'a>
impl<'a> Send for ZeroGuard<'a>
impl<'a> Sync for ZeroGuard<'a>
impl<'a> Unpin for ZeroGuard<'a>
impl<'a> UnsafeUnpin for ZeroGuard<'a>
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