pub struct HeapSecretKey(/* private fields */);
Expand description
Represents a secret key used with transport encryption and authentication that is stored on the heap
Implementations§
Source§impl 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§
Source§impl Clone for HeapSecretKey
impl Clone for HeapSecretKey
Source§fn clone(&self) -> HeapSecretKey
fn clone(&self) -> HeapSecretKey
Returns a copy 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 HeapSecretKey
impl Debug for HeapSecretKey
Source§impl Display for HeapSecretKey
impl Display for HeapSecretKey
Source§impl FromStr for HeapSecretKey
impl FromStr for HeapSecretKey
Source§impl PartialEq<[u8]> for HeapSecretKey
impl PartialEq<[u8]> for HeapSecretKey
Source§impl PartialEq<HeapSecretKey> for &[u8]
impl PartialEq<HeapSecretKey> for &[u8]
Source§impl PartialEq<HeapSecretKey> for &String
impl PartialEq<HeapSecretKey> for &String
Source§impl PartialEq<HeapSecretKey> for &str
impl PartialEq<HeapSecretKey> for &str
Source§impl PartialEq<HeapSecretKey> for [u8]
impl PartialEq<HeapSecretKey> for [u8]
Source§impl PartialEq<HeapSecretKey> for String
impl PartialEq<HeapSecretKey> for String
Source§impl PartialEq<HeapSecretKey> for str
impl PartialEq<HeapSecretKey> for str
Source§impl PartialEq<String> for HeapSecretKey
impl PartialEq<String> for HeapSecretKey
Source§impl PartialEq<str> for HeapSecretKey
impl PartialEq<str> for HeapSecretKey
Source§impl PartialEq for HeapSecretKey
impl PartialEq for HeapSecretKey
impl Eq for HeapSecretKey
impl StructuralPartialEq for HeapSecretKey
Auto Trait Implementations§
impl Freeze for HeapSecretKey
impl RefUnwindSafe for HeapSecretKey
impl Send for HeapSecretKey
impl Sync for HeapSecretKey
impl Unpin for HeapSecretKey
impl UnwindSafe for HeapSecretKey
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