pub enum OperationKind {
Show 28 variants
CreateStore,
SetUpStorage,
RenameStore,
AddDevice,
SetRole,
SetAccess,
RemoveMember,
RemoveDevice,
RenameCircle,
RemoveCircleMember,
RetainSequence,
RetainFiles,
WriteSnapshot,
SchemaChange,
Reset,
ReloadFromSnapshot,
RequiredReload,
RotateKey,
SendKeyCopy,
CreateCircle,
AddCircleMember,
DeleteCircle,
Invite,
ApproveJoin,
Pairing,
RevokeAccess,
ReplaceMemberKeys,
StorageSetup,
}Expand description
The purpose of an unfinished operation, including maintenance.
Variants§
CreateStore
Create the store’s first slot.
SetUpStorage
Record how the store’s first admin reaches storage, which fixes how every member does (§10.3).
RenameStore
Set the store name.
AddDevice
Register this installation.
SetRole
Set a member’s role.
SetAccess
Replace provider access.
RemoveMember
Remove a member.
RemoveDevice
Remove an installation.
RenameCircle
Rename a circle.
RemoveCircleMember
Remove a circle member.
RetainSequence
Advance the floor and delete the covered prefix.
RetainFiles
Delete unreferenced files after establishing retained-object protection.
WriteSnapshot
Write and verify a maintenance snapshot.
SchemaChange
Publish the app’s migrated schema and its audience snapshots.
Reset
Snapshot this device and reset one audience to that state.
ReloadFromSnapshot
Reload snapshots at the app’s request, keeping waiting writes.
RequiredReload
Reload what sync requires: a changed schema or reset, a returning circle, joining or recovery.
RotateKey
Publish a fresh audience key and its sealed copies.
SendKeyCopy
Send an older audience key to a current member whose sealing key has no copy of it.
CreateCircle
Create a circle and its first key.
AddCircleMember
Seal a circle’s history to a member.
DeleteCircle
Publish a circle’s deletion; its rows are taken out from that slot (§15.9).
Invite
Share storage and settle an invitation: record the invite’s share and its end (§13.2).
ApproveJoin
Claim an approved join request’s admission, which admits the member or rebinds their pair, and registers the request’s device (§13.2).
Pairing
Look for a pairing’s request, put its handover or marker in the request’s place (§13.2).
RevokeAccess
Align one provider account’s grants with members and open invitations.
ReplaceMemberKeys
Replace a member’s signing and sealing pair: this member’s own, with a candidate kept in identity custody, or a prepared pair as an admin (§10).
StorageSetup
Set up storage on this device: check the provider, then create the store or reconnect to it (§11.6, §20.8).
Implementations§
Source§impl OperationKind
impl OperationKind
Trait Implementations§
Source§impl Clone for OperationKind
impl Clone for OperationKind
Source§fn clone(&self) -> OperationKind
fn clone(&self) -> OperationKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OperationKind
Source§impl Debug for OperationKind
impl Debug for OperationKind
Source§impl<'de> Deserialize<'de> for OperationKind
impl<'de> Deserialize<'de> for OperationKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OperationKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OperationKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for OperationKind
Source§impl FromSql for OperationKind
Reads coven_operations.kind.
impl FromSql for OperationKind
Reads coven_operations.kind.
Source§fn column_result(value: ValueRef<'_>) -> Result<OperationKind, FromSqlError>
fn column_result(value: ValueRef<'_>) -> Result<OperationKind, FromSqlError>
Source§impl Ord for OperationKind
impl Ord for OperationKind
Source§fn cmp(&self, other: &OperationKind) -> Ordering
fn cmp(&self, other: &OperationKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for OperationKind
impl PartialEq for OperationKind
Source§impl PartialOrd for OperationKind
impl PartialOrd for OperationKind
Source§impl Serialize for OperationKind
impl Serialize for OperationKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for OperationKind
Auto Trait Implementations§
impl Freeze for OperationKind
impl RefUnwindSafe for OperationKind
impl Send for OperationKind
impl Sync for OperationKind
impl Unpin for OperationKind
impl UnsafeUnpin for OperationKind
impl UnwindSafe for OperationKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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 more