pub struct MultiPilotKeyStore { /* private fields */ }Implementations§
Source§impl MultiPilotKeyStore
impl MultiPilotKeyStore
pub fn open(root: impl Into<PathBuf>) -> Self
pub fn for_data_dir(data_dir: impl AsRef<Path>) -> Self
pub fn root_dir(&self) -> &Path
pub fn init(&self) -> Result<(), PilotKeyStoreError>
pub fn generate_pilot( &self, display_name: impl Into<String>, country: Option<String>, node_secret_key: &SecretKey, ) -> Result<PilotIdentity, PilotKeyStoreError>
pub fn load_pilot( &self, pilot_id: &PilotId, node_secret_key: &SecretKey, ) -> Result<Option<PilotIdentity>, PilotKeyStoreError>
pub fn list_pilots( &self, node_secret_key: &SecretKey, ) -> Result<Vec<PilotPublicIdentityWithProfile>, PilotKeyStoreError>
pub fn pilot_store(&self, pilot_id: &PilotId) -> PilotKeyStore
pub fn load_profile( &self, pilot_id: &PilotId, ) -> Result<Option<PilotProfile>, PilotKeyStoreError>
Trait Implementations§
Source§impl Clone for MultiPilotKeyStore
impl Clone for MultiPilotKeyStore
Source§fn clone(&self) -> MultiPilotKeyStore
fn clone(&self) -> MultiPilotKeyStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultiPilotKeyStore
impl RefUnwindSafe for MultiPilotKeyStore
impl Send for MultiPilotKeyStore
impl Sync for MultiPilotKeyStore
impl Unpin for MultiPilotKeyStore
impl UnsafeUnpin for MultiPilotKeyStore
impl UnwindSafe for MultiPilotKeyStore
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