[−][src]Struct secrecy::SecretBytesMut
This is supported on
feature="bytes"
only.Instance of BytesMut
protected by a type that impls the ExposeSecret
trait like Secret<T>
.
Because of the nature of how the BytesMut
type works, it needs some special
care in order to have a proper zeroizing drop handler.
Implementations
impl SecretBytesMut
[src]
pub fn new(bytes: impl Into<BytesMut>) -> SecretBytesMut
[src]
Wrap bytes in SecretBytesMut
Trait Implementations
impl Clone for SecretBytesMut
[src]
fn clone(&self) -> SecretBytesMut
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SecretBytesMut
[src]
impl<'de> Deserialize<'de> for SecretBytesMut
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl Drop for SecretBytesMut
[src]
impl ExposeSecret<BytesMut> for SecretBytesMut
[src]
fn expose_secret(&self) -> &BytesMut
[src]
impl From<BytesMut> for SecretBytesMut
[src]
fn from(bytes: BytesMut) -> SecretBytesMut
[src]
Auto Trait Implementations
impl RefUnwindSafe for SecretBytesMut
impl Send for SecretBytesMut
impl Sync for SecretBytesMut
impl Unpin for SecretBytesMut
impl UnwindSafe for SecretBytesMut
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,