Struct cryptex::KeyRingSecret
source · pub struct KeyRingSecret(pub Vec<u8>);
Expand description
Represents a value stored in the keyring
Tuple Fields§
§0: Vec<u8>
Implementations§
source§impl KeyRingSecret
impl KeyRingSecret
pub fn new(d: Vec<u8>) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn to_vec(&self) -> Vec<u8>
sourcepub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Converts the object to a mutable raw pointer for FFI interfacing
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl Clone for KeyRingSecret
impl Clone for KeyRingSecret
source§fn clone(&self) -> KeyRingSecret
fn clone(&self) -> KeyRingSecret
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 KeyRingSecret
impl Debug for KeyRingSecret
source§impl Display for KeyRingSecret
impl Display for KeyRingSecret
source§impl From<&[u8]> for KeyRingSecret
impl From<&[u8]> for KeyRingSecret
source§impl From<&str> for KeyRingSecret
impl From<&str> for KeyRingSecret
source§impl From<String> for KeyRingSecret
impl From<String> for KeyRingSecret
source§impl FromStr for KeyRingSecret
impl FromStr for KeyRingSecret
source§impl Index<RangeFull> for KeyRingSecret
impl Index<RangeFull> for KeyRingSecret
source§impl Index<usize> for KeyRingSecret
impl Index<usize> for KeyRingSecret
source§impl PartialEq for KeyRingSecret
impl PartialEq for KeyRingSecret
source§fn eq(&self, other: &KeyRingSecret) -> bool
fn eq(&self, other: &KeyRingSecret) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Zeroize for KeyRingSecret
impl Zeroize for KeyRingSecret
impl Eq for KeyRingSecret
impl Send for KeyRingSecret
impl Sync for KeyRingSecret
Auto Trait Implementations§
impl RefUnwindSafe for KeyRingSecret
impl Unpin for KeyRingSecret
impl UnwindSafe for KeyRingSecret
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