pub trait SecretAccess<T: Zeroize + ?Sized> {
// Required methods
fn access<F, R>(&self, f: F) -> R
where F: FnOnce(&T) -> R;
fn access_mut<F, R>(&mut self, f: F) -> R
where F: FnOnce(&mut T) -> R;
}Available on Unix and crate feature
sec_mem only.Expand description
Trait for types that can provide access to underlying data, whether protected or raw
Required Methods§
Sourcefn access_mut<F, R>(&mut self, f: F) -> R
fn access_mut<F, R>(&mut self, f: F) -> R
Access the underlying data for mutation
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".