pub struct DangerousSecretNonce(/* private fields */);Expand description
A type that actually represents a SecretNonce but without the typesystem defenses for dangerous usage.
Implementations§
Source§impl DangerousSecretNonce
impl DangerousSecretNonce
pub fn new(n: SecretNonce) -> Self
pub fn to_sec_nonce(&self) -> SecretNonce
Trait Implementations§
Source§impl Clone for DangerousSecretNonce
impl Clone for DangerousSecretNonce
Source§fn clone(&self) -> DangerousSecretNonce
fn clone(&self) -> DangerousSecretNonce
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DangerousSecretNonce
impl Debug for DangerousSecretNonce
Source§impl<'de> Deserialize<'de> for DangerousSecretNonce
impl<'de> Deserialize<'de> for DangerousSecretNonce
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DangerousSecretNonce
impl PartialEq for DangerousSecretNonce
Source§impl Serialize for DangerousSecretNonce
impl Serialize for DangerousSecretNonce
impl Eq for DangerousSecretNonce
impl StructuralPartialEq for DangerousSecretNonce
Auto Trait Implementations§
impl Freeze for DangerousSecretNonce
impl RefUnwindSafe for DangerousSecretNonce
impl Send for DangerousSecretNonce
impl Sync for DangerousSecretNonce
impl Unpin for DangerousSecretNonce
impl UnwindSafe for DangerousSecretNonce
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