pub struct SecretInput<'a> { /* private fields */ }Expand description
Non-Clone borrowed input classified as secret-bearing.
This wrapper does not own or wipe the borrowed bytes. It prevents implicit
passage into ordinary codecs; callers must deliberately call
Self::expose_secret to obtain an interoperability view.
Implementations§
Source§impl<'a> SecretInput<'a>
impl<'a> SecretInput<'a>
Sourcepub const fn expose_secret(&self) -> ExposedSecret<'_>
pub const fn expose_secret(&self) -> ExposedSecret<'_>
Creates an explicit borrowed interoperability view.
Trait Implementations§
Source§impl Debug for SecretInput<'_>
impl Debug for SecretInput<'_>
Auto Trait Implementations§
impl<'a> Freeze for SecretInput<'a>
impl<'a> RefUnwindSafe for SecretInput<'a>
impl<'a> Send for SecretInput<'a>
impl<'a> Sync for SecretInput<'a>
impl<'a> Unpin for SecretInput<'a>
impl<'a> UnsafeUnpin for SecretInput<'a>
impl<'a> UnwindSafe for SecretInput<'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