Struct distant_net::common::HeapSecretKey
source · pub struct HeapSecretKey(_);Expand description
Represents a secret key used with transport encryption and authentication that is stored on the heap
Implementations
sourceimpl HeapSecretKey
impl HeapSecretKey
sourcepub fn unprotected_as_bytes(&self) -> &[u8] ⓘ
pub fn unprotected_as_bytes(&self) -> &[u8] ⓘ
Returns byte slice to the key’s bytes
sourcepub fn unprotected_into_bytes(self) -> Vec<u8> ⓘ
pub fn unprotected_into_bytes(self) -> Vec<u8> ⓘ
Consumes the secret key and returns the key’s bytes
Trait Implementations
sourceimpl Clone for HeapSecretKey
impl Clone for HeapSecretKey
sourcefn clone(&self) -> HeapSecretKey
fn clone(&self) -> HeapSecretKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for HeapSecretKey
impl Debug for HeapSecretKey
sourceimpl Display for HeapSecretKey
impl Display for HeapSecretKey
sourceimpl<const N: usize> From<SecretKey<N>> for HeapSecretKey
impl<const N: usize> From<SecretKey<N>> for HeapSecretKey
sourceimpl FromStr for HeapSecretKey
impl FromStr for HeapSecretKey
sourceimpl<const N: usize> PartialEq<[u8; N]> for HeapSecretKey
impl<const N: usize> PartialEq<[u8; N]> for HeapSecretKey
sourceimpl<const N: usize> PartialEq<HeapSecretKey> for &[u8; N]
impl<const N: usize> PartialEq<HeapSecretKey> for &[u8; N]
sourcefn eq(&self, other: &HeapSecretKey) -> bool
fn eq(&self, other: &HeapSecretKey) -> bool
sourceimpl PartialEq<HeapSecretKey> for &[u8]
impl PartialEq<HeapSecretKey> for &[u8]
sourcefn eq(&self, other: &HeapSecretKey) -> bool
fn eq(&self, other: &HeapSecretKey) -> bool
sourceimpl PartialEq<HeapSecretKey> for &String
impl PartialEq<HeapSecretKey> for &String
sourcefn eq(&self, other: &HeapSecretKey) -> bool
fn eq(&self, other: &HeapSecretKey) -> bool
sourceimpl PartialEq<HeapSecretKey> for &str
impl PartialEq<HeapSecretKey> for &str
sourcefn eq(&self, other: &HeapSecretKey) -> bool
fn eq(&self, other: &HeapSecretKey) -> bool
sourceimpl<const N: usize> PartialEq<HeapSecretKey> for [u8; N]
impl<const N: usize> PartialEq<HeapSecretKey> for [u8; N]
sourcefn eq(&self, other: &HeapSecretKey) -> bool
fn eq(&self, other: &HeapSecretKey) -> bool
sourceimpl PartialEq<HeapSecretKey> for [u8]
impl PartialEq<HeapSecretKey> for [u8]
sourcefn eq(&self, other: &HeapSecretKey) -> bool
fn eq(&self, other: &HeapSecretKey) -> bool
sourceimpl PartialEq<HeapSecretKey> for HeapSecretKey
impl PartialEq<HeapSecretKey> for HeapSecretKey
sourcefn eq(&self, other: &HeapSecretKey) -> bool
fn eq(&self, other: &HeapSecretKey) -> bool
sourceimpl PartialEq<HeapSecretKey> for String
impl PartialEq<HeapSecretKey> for String
sourcefn eq(&self, other: &HeapSecretKey) -> bool
fn eq(&self, other: &HeapSecretKey) -> bool
sourceimpl PartialEq<HeapSecretKey> for str
impl PartialEq<HeapSecretKey> for str
sourcefn eq(&self, other: &HeapSecretKey) -> bool
fn eq(&self, other: &HeapSecretKey) -> bool
impl Eq for HeapSecretKey
impl StructuralEq for HeapSecretKey
impl StructuralPartialEq for HeapSecretKey
Auto Trait Implementations
impl RefUnwindSafe for HeapSecretKey
impl Send for HeapSecretKey
impl Sync for HeapSecretKey
impl Unpin for HeapSecretKey
impl UnwindSafe for HeapSecretKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more