pub trait DebugSecret {
// Provided method
fn debug_secret(f: &mut Formatter<'_>) -> Result<(), Error> { ... }
}
Expand description
Debugging trait which is specialized for handling secret values
Provided Methods§
Sourcefn debug_secret(f: &mut Formatter<'_>) -> Result<(), Error>
fn debug_secret(f: &mut Formatter<'_>) -> Result<(), Error>
Format information about the secret’s type.
This can be thought of as an equivalent to Debug::fmt
, but one
which by design does not permit access to the secret value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.