pub struct CredentialKeychains { /* private fields */ }Expand description
The keychain entries a credential change commits: this device’s provider credentials, and the person’s restore code and S3 key, saved for their next devices (§13.1).
Implementations§
Source§impl CredentialKeychains
impl CredentialKeychains
Sourcepub fn new(
device: Arc<StoreKeychain>,
person: Arc<PersonEntries>,
directory: StoreDir,
) -> Self
pub fn new( device: Arc<StoreKeychain>, person: Arc<PersonEntries>, directory: StoreDir, ) -> Self
Pair one store’s device-only entries and the person’s entries, beside the store’s directory.
Sourcepub fn storage_credentials(&self) -> Result<Option<SecretBytes>, SyncError>
pub fn storage_credentials(&self) -> Result<Option<SecretBytes>, SyncError>
This device’s committed provider credentials, if any.
Sourcepub fn refresh_restore_code(
&self,
code: &RestoreCode,
name: &SavedName,
) -> Result<(), SyncError>
pub fn refresh_restore_code( &self, code: &RestoreCode, name: &SavedName, ) -> Result<(), SyncError>
Save the saved restore code with the store’s name, or the entry’s when that is newer, where the keychain keeps person entries (§13.1).
Sourcepub fn connection(&self) -> Result<Option<ConnectionCredentials>, SyncError>
pub fn connection(&self) -> Result<Option<ConnectionCredentials>, SyncError>
The saved location with this device’s credentials; None when either is absent.
Sourcepub fn location(&self) -> Result<RecordedLocation<StorageConfig>, SyncError>
pub fn location(&self) -> Result<RecordedLocation<StorageConfig>, SyncError>
The recorded location, with its labels, and whether this device’s credentials for it are held, as the sync state reads it (§19.1).
Auto Trait Implementations§
impl !RefUnwindSafe for CredentialKeychains
impl !UnwindSafe for CredentialKeychains
impl Freeze for CredentialKeychains
impl Send for CredentialKeychains
impl Sync for CredentialKeychains
impl Unpin for CredentialKeychains
impl UnsafeUnpin for CredentialKeychains
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.