pub struct StoreCustody { /* private fields */ }Expand description
The store’s identity and host secrets, retaining their custody and keychain. Shares the unlocked sessions used by the handle and its workers.
Implementations§
Source§impl StoreCustody
impl StoreCustody
Sourcepub fn new(
keys: Arc<KeySession<StoreKeyring>>,
identity: Arc<KeySession<MemberIdentity>>,
keychain: Arc<StoreKeychain>,
) -> Self
pub fn new( keys: Arc<KeySession<StoreKeyring>>, identity: Arc<KeySession<MemberIdentity>>, keychain: Arc<StoreKeychain>, ) -> Self
Compose already chosen custody at the application opening root.
Sourcepub fn new_identity(
&self,
member: MemberId,
) -> Result<MemberIdentity, IdentityError>
pub fn new_identity( &self, member: MemberId, ) -> Result<MemberIdentity, IdentityError>
Makes this member’s two key pairs for the independently generated
member, for the person creating a store, who then puts them in
identity custody. Fails if custody already holds keys. It writes
nothing, so a creation that fails here has nothing of its own to
take back. Joining and restoring put their identity there
themselves.
Sourcepub fn set_host_secret(&self, name: &str, value: &str) -> Result<(), KeyError>
pub fn set_host_secret(&self, name: &str, value: &str) -> Result<(), KeyError>
Records the name before saving the value in its own device-only entry, so deleting the store can remove every saved secret. Names are arbitrary strings; each value retains the platform’s per-entry size limit.
Auto Trait Implementations§
impl Freeze for StoreCustody
impl !RefUnwindSafe for StoreCustody
impl Send for StoreCustody
impl Sync for StoreCustody
impl Unpin for StoreCustody
impl UnsafeUnpin for StoreCustody
impl !UnwindSafe for StoreCustody
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