pub struct SecureKeystore { /* private fields */ }Implementations§
Source§impl SecureKeystore
impl SecureKeystore
pub fn new() -> Self
pub fn with_master_key(key: [u8; 32]) -> Self
pub fn add_identity(&mut self, identity: QuDagIdentity)
pub fn get_identity(&self, node_id: &str) -> Option<&QuDagIdentity>
pub fn remove_identity(&mut self, node_id: &str) -> Option<QuDagIdentity>
pub fn list_identities(&self) -> Vec<&str>
pub fn clear(&mut self)
Trait Implementations§
Source§impl Default for SecureKeystore
impl Default for SecureKeystore
Auto Trait Implementations§
impl Freeze for SecureKeystore
impl RefUnwindSafe for SecureKeystore
impl Send for SecureKeystore
impl Sync for SecureKeystore
impl Unpin for SecureKeystore
impl UnsafeUnpin for SecureKeystore
impl UnwindSafe for SecureKeystore
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