pub struct MockSqlKeyStore {
pub mock_mls: Arc<Mutex<MockTransactionalKeyStore>>,
/* private fields */
}Expand description
An Mls provider that delegates MLS stuff to in-memory sqlite store, otherwise uses mockall
Fields§
§mock_mls: Arc<Mutex<MockTransactionalKeyStore>>Implementations§
Source§impl MockSqlKeyStore
impl MockSqlKeyStore
pub fn mls(&self) -> &impl XmtpMlsStorageProvider
Source§impl MockSqlKeyStore
impl MockSqlKeyStore
pub fn new( db: Arc<MockDbQuery>, store: MockTransactionalKeyStore, mem: Arc<SqlKeyStore<MemoryStorage>>, ) -> Self
Trait Implementations§
Source§impl Clone for MockSqlKeyStore
impl Clone for MockSqlKeyStore
Source§fn clone(&self) -> MockSqlKeyStore
fn clone(&self) -> MockSqlKeyStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl StorageProvider<CURRENT_VERSION> for MockSqlKeyStore
impl StorageProvider<CURRENT_VERSION> for MockSqlKeyStore
Source§type Error = SqlKeyStoreError
type Error = SqlKeyStoreError
An opaque error returned by all methods on this trait.
Source§fn queue_proposal<GroupId: GroupId<CURRENT_VERSION>, ProposalRef: ProposalRef<CURRENT_VERSION>, QueuedProposal: QueuedProposal<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
proposal_ref: &ProposalRef,
proposal: &QueuedProposal,
) -> Result<(), Self::Error>
fn queue_proposal<GroupId: GroupId<CURRENT_VERSION>, ProposalRef: ProposalRef<CURRENT_VERSION>, QueuedProposal: QueuedProposal<CURRENT_VERSION>>( &self, group_id: &GroupId, proposal_ref: &ProposalRef, proposal: &QueuedProposal, ) -> Result<(), Self::Error>
Enqueue a proposal. Read more
Source§fn write_tree<GroupId: GroupId<CURRENT_VERSION>, TreeSync: TreeSync<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
tree: &TreeSync,
) -> Result<(), Self::Error>
fn write_tree<GroupId: GroupId<CURRENT_VERSION>, TreeSync: TreeSync<CURRENT_VERSION>>( &self, group_id: &GroupId, tree: &TreeSync, ) -> Result<(), Self::Error>
Write the TreeSync tree.
Source§fn write_interim_transcript_hash<GroupId: GroupId<CURRENT_VERSION>, InterimTranscriptHash: InterimTranscriptHash<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
interim_transcript_hash: &InterimTranscriptHash,
) -> Result<(), Self::Error>
fn write_interim_transcript_hash<GroupId: GroupId<CURRENT_VERSION>, InterimTranscriptHash: InterimTranscriptHash<CURRENT_VERSION>>( &self, group_id: &GroupId, interim_transcript_hash: &InterimTranscriptHash, ) -> Result<(), Self::Error>
Write the interim transcript hash.
Source§fn write_context<GroupId: GroupId<CURRENT_VERSION>, GroupContext: GroupContext<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
group_context: &GroupContext,
) -> Result<(), Self::Error>
fn write_context<GroupId: GroupId<CURRENT_VERSION>, GroupContext: GroupContext<CURRENT_VERSION>>( &self, group_id: &GroupId, group_context: &GroupContext, ) -> Result<(), Self::Error>
Write the group context.
Source§fn write_confirmation_tag<GroupId: GroupId<CURRENT_VERSION>, ConfirmationTag: ConfirmationTag<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
confirmation_tag: &ConfirmationTag,
) -> Result<(), Self::Error>
fn write_confirmation_tag<GroupId: GroupId<CURRENT_VERSION>, ConfirmationTag: ConfirmationTag<CURRENT_VERSION>>( &self, group_id: &GroupId, confirmation_tag: &ConfirmationTag, ) -> Result<(), Self::Error>
Write the confirmation tag.
Source§fn write_signature_key_pair<SignaturePublicKey: SignaturePublicKey<CURRENT_VERSION>, SignatureKeyPair: SignatureKeyPair<CURRENT_VERSION>>(
&self,
public_key: &SignaturePublicKey,
signature_key_pair: &SignatureKeyPair,
) -> Result<(), Self::Error>
fn write_signature_key_pair<SignaturePublicKey: SignaturePublicKey<CURRENT_VERSION>, SignatureKeyPair: SignatureKeyPair<CURRENT_VERSION>>( &self, public_key: &SignaturePublicKey, signature_key_pair: &SignatureKeyPair, ) -> Result<(), Self::Error>
Store a signature key. Read more
Source§fn queued_proposal_refs<GroupId: GroupId<CURRENT_VERSION>, ProposalRef: ProposalRef<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Vec<ProposalRef>, Self::Error>
fn queued_proposal_refs<GroupId: GroupId<CURRENT_VERSION>, ProposalRef: ProposalRef<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Vec<ProposalRef>, Self::Error>
Returns references of all queued proposals for the group with group id
group_id, or an empty vector of none are stored.Source§fn queued_proposals<GroupId: GroupId<CURRENT_VERSION>, ProposalRef: ProposalRef<CURRENT_VERSION>, QueuedProposal: QueuedProposal<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Vec<(ProposalRef, QueuedProposal)>, Self::Error>
fn queued_proposals<GroupId: GroupId<CURRENT_VERSION>, ProposalRef: ProposalRef<CURRENT_VERSION>, QueuedProposal: QueuedProposal<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Vec<(ProposalRef, QueuedProposal)>, Self::Error>
Returns all queued proposals for the group with group id
group_id, or an empty vector of none are stored.Source§fn tree<GroupId: GroupId<CURRENT_VERSION>, TreeSync: TreeSync<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Option<TreeSync>, Self::Error>
fn tree<GroupId: GroupId<CURRENT_VERSION>, TreeSync: TreeSync<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Option<TreeSync>, Self::Error>
Returns the TreeSync tree for the group with group id
group_id.Source§fn group_context<GroupId: GroupId<CURRENT_VERSION>, GroupContext: GroupContext<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Option<GroupContext>, Self::Error>
fn group_context<GroupId: GroupId<CURRENT_VERSION>, GroupContext: GroupContext<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Option<GroupContext>, Self::Error>
Returns the group context for the group with group id
group_id.Source§fn interim_transcript_hash<GroupId: GroupId<CURRENT_VERSION>, InterimTranscriptHash: InterimTranscriptHash<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Option<InterimTranscriptHash>, Self::Error>
fn interim_transcript_hash<GroupId: GroupId<CURRENT_VERSION>, InterimTranscriptHash: InterimTranscriptHash<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Option<InterimTranscriptHash>, Self::Error>
Returns the interim transcript hash for the group with group id
group_id.Source§fn confirmation_tag<GroupId: GroupId<CURRENT_VERSION>, ConfirmationTag: ConfirmationTag<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Option<ConfirmationTag>, Self::Error>
fn confirmation_tag<GroupId: GroupId<CURRENT_VERSION>, ConfirmationTag: ConfirmationTag<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Option<ConfirmationTag>, Self::Error>
Returns the confirmation tag for the group with group id
group_id.Source§fn signature_key_pair<SignaturePublicKey: SignaturePublicKey<CURRENT_VERSION>, SignatureKeyPair: SignatureKeyPair<CURRENT_VERSION>>(
&self,
public_key: &SignaturePublicKey,
) -> Result<Option<SignatureKeyPair>, Self::Error>
fn signature_key_pair<SignaturePublicKey: SignaturePublicKey<CURRENT_VERSION>, SignatureKeyPair: SignatureKeyPair<CURRENT_VERSION>>( &self, public_key: &SignaturePublicKey, ) -> Result<Option<SignatureKeyPair>, Self::Error>
Get a signature key based on the public key. Read more
Source§fn write_key_package<HashReference: HashReference<CURRENT_VERSION>, KeyPackage: KeyPackage<CURRENT_VERSION>>(
&self,
hash_ref: &HashReference,
key_package: &KeyPackage,
) -> Result<(), Self::Error>
fn write_key_package<HashReference: HashReference<CURRENT_VERSION>, KeyPackage: KeyPackage<CURRENT_VERSION>>( &self, hash_ref: &HashReference, key_package: &KeyPackage, ) -> Result<(), Self::Error>
Store key packages. Read more
Source§fn write_psk<PskId: PskId<CURRENT_VERSION>, PskBundle: PskBundle<CURRENT_VERSION>>(
&self,
_psk_id: &PskId,
_psk: &PskBundle,
) -> Result<(), Self::Error>
fn write_psk<PskId: PskId<CURRENT_VERSION>, PskBundle: PskBundle<CURRENT_VERSION>>( &self, _psk_id: &PskId, _psk: &PskBundle, ) -> Result<(), Self::Error>
Store a PSK. Read more
Source§fn write_encryption_key_pair<EncryptionKey: EncryptionKey<CURRENT_VERSION>, HpkeKeyPair: HpkeKeyPair<CURRENT_VERSION>>(
&self,
public_key: &EncryptionKey,
key_pair: &HpkeKeyPair,
) -> Result<(), Self::Error>
fn write_encryption_key_pair<EncryptionKey: EncryptionKey<CURRENT_VERSION>, HpkeKeyPair: HpkeKeyPair<CURRENT_VERSION>>( &self, public_key: &EncryptionKey, key_pair: &HpkeKeyPair, ) -> Result<(), Self::Error>
Store an HPKE encryption key pair.
This includes the private and public key Read more
Source§fn key_package<HashReference: HashReference<CURRENT_VERSION>, KeyPackage: KeyPackage<CURRENT_VERSION>>(
&self,
hash_ref: &HashReference,
) -> Result<Option<KeyPackage>, Self::Error>
fn key_package<HashReference: HashReference<CURRENT_VERSION>, KeyPackage: KeyPackage<CURRENT_VERSION>>( &self, hash_ref: &HashReference, ) -> Result<Option<KeyPackage>, Self::Error>
Get a key package based on its hash reference.
Source§fn psk<PskBundle: PskBundle<CURRENT_VERSION>, PskId: PskId<CURRENT_VERSION>>(
&self,
_psk_id: &PskId,
) -> Result<Option<PskBundle>, Self::Error>
fn psk<PskBundle: PskBundle<CURRENT_VERSION>, PskId: PskId<CURRENT_VERSION>>( &self, _psk_id: &PskId, ) -> Result<Option<PskBundle>, Self::Error>
Get a PSK based on the PSK identifier.
Source§fn encryption_key_pair<HpkeKeyPair: HpkeKeyPair<CURRENT_VERSION>, EncryptionKey: EncryptionKey<CURRENT_VERSION>>(
&self,
public_key: &EncryptionKey,
) -> Result<Option<HpkeKeyPair>, Self::Error>
fn encryption_key_pair<HpkeKeyPair: HpkeKeyPair<CURRENT_VERSION>, EncryptionKey: EncryptionKey<CURRENT_VERSION>>( &self, public_key: &EncryptionKey, ) -> Result<Option<HpkeKeyPair>, Self::Error>
Get an HPKE encryption key pair based on the public key. Read more
Source§fn delete_signature_key_pair<SignaturePublicKey: SignaturePublicKey<CURRENT_VERSION>>(
&self,
public_key: &SignaturePublicKey,
) -> Result<(), Self::Error>
fn delete_signature_key_pair<SignaturePublicKey: SignaturePublicKey<CURRENT_VERSION>>( &self, public_key: &SignaturePublicKey, ) -> Result<(), Self::Error>
Delete a signature key pair based on its public key Read more
Source§fn delete_encryption_key_pair<EncryptionKey: EncryptionKey<CURRENT_VERSION>>(
&self,
public_key: &EncryptionKey,
) -> Result<(), Self::Error>
fn delete_encryption_key_pair<EncryptionKey: EncryptionKey<CURRENT_VERSION>>( &self, public_key: &EncryptionKey, ) -> Result<(), Self::Error>
Delete an encryption key pair for a public key. Read more
Source§fn delete_key_package<HashReference: HashReference<CURRENT_VERSION>>(
&self,
hash_ref: &HashReference,
) -> Result<(), Self::Error>
fn delete_key_package<HashReference: HashReference<CURRENT_VERSION>>( &self, hash_ref: &HashReference, ) -> Result<(), Self::Error>
Delete a key package based on the hash reference. Read more
Source§fn delete_psk<PskKey: PskId<CURRENT_VERSION>>(
&self,
_psk_id: &PskKey,
) -> Result<(), Self::Error>
fn delete_psk<PskKey: PskId<CURRENT_VERSION>>( &self, _psk_id: &PskKey, ) -> Result<(), Self::Error>
Delete a PSK based on an identifier.
Source§fn group_state<GroupState: GroupState<CURRENT_VERSION>, GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Option<GroupState>, Self::Error>
fn group_state<GroupState: GroupState<CURRENT_VERSION>, GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Option<GroupState>, Self::Error>
Returns the group state for the group with group id
group_id.Source§fn write_group_state<GroupState: GroupState<CURRENT_VERSION>, GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
group_state: &GroupState,
) -> Result<(), Self::Error>
fn write_group_state<GroupState: GroupState<CURRENT_VERSION>, GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, group_state: &GroupState, ) -> Result<(), Self::Error>
Writes the MlsGroupState for group with given id.
Source§fn delete_group_state<GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn delete_group_state<GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Deletes the MlsGroupState for group with given id.
Source§fn message_secrets<GroupId: GroupId<CURRENT_VERSION>, MessageSecrets: MessageSecrets<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Option<MessageSecrets>, Self::Error>
fn message_secrets<GroupId: GroupId<CURRENT_VERSION>, MessageSecrets: MessageSecrets<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Option<MessageSecrets>, Self::Error>
Returns the MessageSecretsStore for the group with the given id.
Source§fn write_message_secrets<GroupId: GroupId<CURRENT_VERSION>, MessageSecrets: MessageSecrets<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
message_secrets: &MessageSecrets,
) -> Result<(), Self::Error>
fn write_message_secrets<GroupId: GroupId<CURRENT_VERSION>, MessageSecrets: MessageSecrets<CURRENT_VERSION>>( &self, group_id: &GroupId, message_secrets: &MessageSecrets, ) -> Result<(), Self::Error>
Writes the MessageSecretsStore for the group with the given id.
Source§fn delete_message_secrets<GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn delete_message_secrets<GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Deletes the MessageSecretsStore for the group with the given id.
Source§fn resumption_psk_store<GroupId: GroupId<CURRENT_VERSION>, ResumptionPskStore: ResumptionPskStore<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Option<ResumptionPskStore>, Self::Error>
fn resumption_psk_store<GroupId: GroupId<CURRENT_VERSION>, ResumptionPskStore: ResumptionPskStore<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Option<ResumptionPskStore>, Self::Error>
Returns the ResumptionPskStore for the group with the given id. Read more
Source§fn write_resumption_psk_store<GroupId: GroupId<CURRENT_VERSION>, ResumptionPskStore: ResumptionPskStore<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
resumption_psk_store: &ResumptionPskStore,
) -> Result<(), Self::Error>
fn write_resumption_psk_store<GroupId: GroupId<CURRENT_VERSION>, ResumptionPskStore: ResumptionPskStore<CURRENT_VERSION>>( &self, group_id: &GroupId, resumption_psk_store: &ResumptionPskStore, ) -> Result<(), Self::Error>
Writes the ResumptionPskStore for the group with the given id.
Source§fn delete_all_resumption_psk_secrets<GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn delete_all_resumption_psk_secrets<GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Deletes the ResumptionPskStore for the group with the given id.
Source§fn own_leaf_index<GroupId: GroupId<CURRENT_VERSION>, LeafNodeIndex: LeafNodeIndex<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Option<LeafNodeIndex>, Self::Error>
fn own_leaf_index<GroupId: GroupId<CURRENT_VERSION>, LeafNodeIndex: LeafNodeIndex<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Option<LeafNodeIndex>, Self::Error>
Returns the own leaf index inside the group for the group with the given id.
Source§fn write_own_leaf_index<GroupId: GroupId<CURRENT_VERSION>, LeafNodeIndex: LeafNodeIndex<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
own_leaf_index: &LeafNodeIndex,
) -> Result<(), Self::Error>
fn write_own_leaf_index<GroupId: GroupId<CURRENT_VERSION>, LeafNodeIndex: LeafNodeIndex<CURRENT_VERSION>>( &self, group_id: &GroupId, own_leaf_index: &LeafNodeIndex, ) -> Result<(), Self::Error>
Writes the own leaf index inside the group for the group with the given id.
Source§fn delete_own_leaf_index<GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn delete_own_leaf_index<GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Deletes the own leaf index inside the group for the group with the given id.
Source§fn group_epoch_secrets<GroupId: GroupId<CURRENT_VERSION>, GroupEpochSecrets: GroupEpochSecrets<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Option<GroupEpochSecrets>, Self::Error>
fn group_epoch_secrets<GroupId: GroupId<CURRENT_VERSION>, GroupEpochSecrets: GroupEpochSecrets<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Option<GroupEpochSecrets>, Self::Error>
Returns the GroupEpochSecrets for the group with the given id.
Source§fn write_group_epoch_secrets<GroupId: GroupId<CURRENT_VERSION>, GroupEpochSecrets: GroupEpochSecrets<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
group_epoch_secrets: &GroupEpochSecrets,
) -> Result<(), Self::Error>
fn write_group_epoch_secrets<GroupId: GroupId<CURRENT_VERSION>, GroupEpochSecrets: GroupEpochSecrets<CURRENT_VERSION>>( &self, group_id: &GroupId, group_epoch_secrets: &GroupEpochSecrets, ) -> Result<(), Self::Error>
Writes the GroupEpochSecrets for the group with the given id.
Source§fn delete_group_epoch_secrets<GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn delete_group_epoch_secrets<GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Deletes the GroupEpochSecrets for the group with the given id.
Source§fn write_encryption_epoch_key_pairs<GroupId: GroupId<CURRENT_VERSION>, EpochKey: EpochKey<CURRENT_VERSION>, HpkeKeyPair: HpkeKeyPair<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
epoch: &EpochKey,
leaf_index: u32,
key_pairs: &[HpkeKeyPair],
) -> Result<(), Self::Error>
fn write_encryption_epoch_key_pairs<GroupId: GroupId<CURRENT_VERSION>, EpochKey: EpochKey<CURRENT_VERSION>, HpkeKeyPair: HpkeKeyPair<CURRENT_VERSION>>( &self, group_id: &GroupId, epoch: &EpochKey, leaf_index: u32, key_pairs: &[HpkeKeyPair], ) -> Result<(), Self::Error>
Store a list of HPKE encryption key pairs for a given epoch.
This includes the private and public keys.
Source§fn encryption_epoch_key_pairs<GroupId: GroupId<CURRENT_VERSION>, EpochKey: EpochKey<CURRENT_VERSION>, HpkeKeyPair: HpkeKeyPair<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
epoch: &EpochKey,
leaf_index: u32,
) -> Result<Vec<HpkeKeyPair>, Self::Error>
fn encryption_epoch_key_pairs<GroupId: GroupId<CURRENT_VERSION>, EpochKey: EpochKey<CURRENT_VERSION>, HpkeKeyPair: HpkeKeyPair<CURRENT_VERSION>>( &self, group_id: &GroupId, epoch: &EpochKey, leaf_index: u32, ) -> Result<Vec<HpkeKeyPair>, Self::Error>
Get a list of HPKE encryption key pairs for a given epoch.
This includes the private and public keys.
Source§fn delete_encryption_epoch_key_pairs<GroupId: GroupId<CURRENT_VERSION>, EpochKey: EpochKey<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
epoch: &EpochKey,
leaf_index: u32,
) -> Result<(), Self::Error>
fn delete_encryption_epoch_key_pairs<GroupId: GroupId<CURRENT_VERSION>, EpochKey: EpochKey<CURRENT_VERSION>>( &self, group_id: &GroupId, epoch: &EpochKey, leaf_index: u32, ) -> Result<(), Self::Error>
Delete a list of HPKE encryption key pairs for a given epoch.
This includes the private and public keys.
Source§fn clear_proposal_queue<GroupId: GroupId<CURRENT_VERSION>, ProposalRef: ProposalRef<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn clear_proposal_queue<GroupId: GroupId<CURRENT_VERSION>, ProposalRef: ProposalRef<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Clear the proposal queue for the group with the given id.
Source§fn mls_group_join_config<GroupId: GroupId<CURRENT_VERSION>, MlsGroupJoinConfig: MlsGroupJoinConfig<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Option<MlsGroupJoinConfig>, Self::Error>
fn mls_group_join_config<GroupId: GroupId<CURRENT_VERSION>, MlsGroupJoinConfig: MlsGroupJoinConfig<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Option<MlsGroupJoinConfig>, Self::Error>
Returns the MlsGroupJoinConfig for the group with given id
Source§fn write_mls_join_config<GroupId: GroupId<CURRENT_VERSION>, MlsGroupJoinConfig: MlsGroupJoinConfig<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
config: &MlsGroupJoinConfig,
) -> Result<(), Self::Error>
fn write_mls_join_config<GroupId: GroupId<CURRENT_VERSION>, MlsGroupJoinConfig: MlsGroupJoinConfig<CURRENT_VERSION>>( &self, group_id: &GroupId, config: &MlsGroupJoinConfig, ) -> Result<(), Self::Error>
Writes the MlsGroupJoinConfig for the group with given id to storage
Source§fn own_leaf_nodes<GroupId: GroupId<CURRENT_VERSION>, LeafNode: LeafNode<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<Vec<LeafNode>, Self::Error>
fn own_leaf_nodes<GroupId: GroupId<CURRENT_VERSION>, LeafNode: LeafNode<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<Vec<LeafNode>, Self::Error>
Returns the own leaf nodes for the group with given id
Source§fn append_own_leaf_node<GroupId: GroupId<CURRENT_VERSION>, LeafNode: LeafNode<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
leaf_node: &LeafNode,
) -> Result<(), Self::Error>
fn append_own_leaf_node<GroupId: GroupId<CURRENT_VERSION>, LeafNode: LeafNode<CURRENT_VERSION>>( &self, group_id: &GroupId, leaf_node: &LeafNode, ) -> Result<(), Self::Error>
Adds an own leaf node for the group with given id to storage
Source§fn delete_own_leaf_nodes<GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn delete_own_leaf_nodes<GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Deletes own leaf nodes for the given id from storage
Source§fn delete_group_config<GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn delete_group_config<GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Deletes the MlsGroupJoinConfig for the given id from storage
Source§fn delete_tree<GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn delete_tree<GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Deletes the tree from storage
Source§fn delete_confirmation_tag<GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn delete_confirmation_tag<GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Deletes the confirmation tag from storage
Source§fn delete_context<GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn delete_context<GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Deletes the group context for the group with given id
Source§fn delete_interim_transcript_hash<GroupId: GroupId<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
) -> Result<(), Self::Error>
fn delete_interim_transcript_hash<GroupId: GroupId<CURRENT_VERSION>>( &self, group_id: &GroupId, ) -> Result<(), Self::Error>
Deletes the interim transcript hash for the group with given id
Source§fn remove_proposal<GroupId: GroupId<CURRENT_VERSION>, ProposalRef: ProposalRef<CURRENT_VERSION>>(
&self,
group_id: &GroupId,
proposal_ref: &ProposalRef,
) -> Result<(), Self::Error>
fn remove_proposal<GroupId: GroupId<CURRENT_VERSION>, ProposalRef: ProposalRef<CURRENT_VERSION>>( &self, group_id: &GroupId, proposal_ref: &ProposalRef, ) -> Result<(), Self::Error>
Removes an individual proposal from the proposal queue of the group with the provided id
Source§impl XmtpMlsStorageProvider for MockSqlKeyStore
impl XmtpMlsStorageProvider for MockSqlKeyStore
Source§type Connection = MockConnection
type Connection = MockConnection
An Opaque Database connection type. Can be anything.
type DbQuery<'a> = &'a MockDbQuery
type TxQuery = MockTransactionalKeyStore
fn db<'a>(&'a self) -> Self::DbQuery<'a>
Source§fn transaction<T, E, F>(&self, f: F) -> Result<T, E>
fn transaction<T, E, F>(&self, f: F) -> Result<T, E>
Start a new transaction
Source§fn savepoint<T, E, F>(&self, f: F) -> Result<T, E>
fn savepoint<T, E, F>(&self, f: F) -> Result<T, E>
Start a savepoint within a transaction
Must only be used when already in a transaction
fn read<V: Entity<CURRENT_VERSION>>( &self, label: &[u8], key: &[u8], ) -> Result<Option<V>, SqlKeyStoreError>
fn read_list<V: Entity<CURRENT_VERSION>>( &self, label: &[u8], key: &[u8], ) -> Result<Vec<V>, <Self as StorageProvider<CURRENT_VERSION>>::Error>
fn delete( &self, label: &[u8], key: &[u8], ) -> Result<(), <Self as StorageProvider<CURRENT_VERSION>>::Error>
fn write( &self, label: &[u8], key: &[u8], value: &[u8], ) -> Result<(), <Self as StorageProvider<CURRENT_VERSION>>::Error>
fn hash_all(&self) -> Result<Vec<u8>, SqlKeyStoreError>
fn _disable_lint_for_self<'a>(_: Self::DbQuery<'a>)
Auto Trait Implementations§
impl Freeze for MockSqlKeyStore
impl !RefUnwindSafe for MockSqlKeyStore
impl Send for MockSqlKeyStore
impl Sync for MockSqlKeyStore
impl Unpin for MockSqlKeyStore
impl !UnwindSafe for MockSqlKeyStore
Blanket Implementations§
§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read more§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read more§fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
Add an aggregate function filter Read more
§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
Add an aggregate function order Read more
§impl<T> AnySync for T
impl<T> AnySync for T
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<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Set the foreground color generically Read more
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Set the background color generically. Read more
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to magenta
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Change the foreground color to the terminal default
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Change the background color to the terminal default
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Change the foreground color to bright black
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Change the background color to bright black
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Change the foreground color to bright red
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Change the background color to bright red
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Change the foreground color to bright green
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Change the background color to bright green
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Change the foreground color to bright yellow
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Change the background color to bright yellow
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Change the foreground color to bright blue
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Change the background color to bright blue
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright magenta
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright magenta
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright purple
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright purple
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Change the foreground color to bright cyan
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Change the background color to bright cyan
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Change the foreground color to bright white
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Change the background color to bright white
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Make the text blink (but fast!)
Hide the text
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Cross out the text
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the foreground color at runtime. Only use if you do not know which color will be used at
compile-time. If the color is constant, use either [
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the background color at runtime. Only use if you do not know what color to use at
compile-time. If the color is constant, use either [
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the foreground color to a specific RGB value.
§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the background color to a specific RGB value.
§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Sets the foreground color to an RGB value.
§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Sets the background color to an RGB value.
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T, const VERSION: u16> PublicStorageProvider<VERSION> for Twhere
T: StorageProvider<VERSION>,
impl<T, const VERSION: u16> PublicStorageProvider<VERSION> for Twhere
T: StorageProvider<VERSION>,
§type PublicError = <T as StorageProvider<VERSION>>::Error
type PublicError = <T as StorageProvider<VERSION>>::Error
An opaque error returned by all methods on this trait.
§fn write_tree<GroupId, TreeSync>(
&self,
group_id: &GroupId,
tree: &TreeSync,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
TreeSync: TreeSync<VERSION>,
fn write_tree<GroupId, TreeSync>(
&self,
group_id: &GroupId,
tree: &TreeSync,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
TreeSync: TreeSync<VERSION>,
Write the TreeSync tree.
§fn write_interim_transcript_hash<GroupId, InterimTranscriptHash>(
&self,
group_id: &GroupId,
interim_transcript_hash: &InterimTranscriptHash,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
InterimTranscriptHash: InterimTranscriptHash<VERSION>,
fn write_interim_transcript_hash<GroupId, InterimTranscriptHash>(
&self,
group_id: &GroupId,
interim_transcript_hash: &InterimTranscriptHash,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
InterimTranscriptHash: InterimTranscriptHash<VERSION>,
Write the interim transcript hash.
§fn write_context<GroupId, GroupContext>(
&self,
group_id: &GroupId,
group_context: &GroupContext,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
GroupContext: GroupContext<VERSION>,
fn write_context<GroupId, GroupContext>(
&self,
group_id: &GroupId,
group_context: &GroupContext,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
GroupContext: GroupContext<VERSION>,
Write the group context.
§fn write_confirmation_tag<GroupId, ConfirmationTag>(
&self,
group_id: &GroupId,
confirmation_tag: &ConfirmationTag,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ConfirmationTag: ConfirmationTag<VERSION>,
fn write_confirmation_tag<GroupId, ConfirmationTag>(
&self,
group_id: &GroupId,
confirmation_tag: &ConfirmationTag,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ConfirmationTag: ConfirmationTag<VERSION>,
Write the confirmation tag.
§fn queue_proposal<GroupId, ProposalRef, QueuedProposal>(
&self,
group_id: &GroupId,
proposal_ref: &ProposalRef,
proposal: &QueuedProposal,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ProposalRef: ProposalRef<VERSION>,
QueuedProposal: QueuedProposal<VERSION>,
fn queue_proposal<GroupId, ProposalRef, QueuedProposal>(
&self,
group_id: &GroupId,
proposal_ref: &ProposalRef,
proposal: &QueuedProposal,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ProposalRef: ProposalRef<VERSION>,
QueuedProposal: QueuedProposal<VERSION>,
Enqueue a proposal.
§fn queued_proposals<GroupId, ProposalRef, QueuedProposal>(
&self,
group_id: &GroupId,
) -> Result<Vec<(ProposalRef, QueuedProposal)>, <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ProposalRef: ProposalRef<VERSION>,
QueuedProposal: QueuedProposal<VERSION>,
fn queued_proposals<GroupId, ProposalRef, QueuedProposal>(
&self,
group_id: &GroupId,
) -> Result<Vec<(ProposalRef, QueuedProposal)>, <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ProposalRef: ProposalRef<VERSION>,
QueuedProposal: QueuedProposal<VERSION>,
Returns all queued proposals for the group with group id
group_id, or an empty vector of none are stored.§fn tree<GroupId, TreeSync>(
&self,
group_id: &GroupId,
) -> Result<Option<TreeSync>, <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
TreeSync: TreeSync<VERSION>,
fn tree<GroupId, TreeSync>(
&self,
group_id: &GroupId,
) -> Result<Option<TreeSync>, <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
TreeSync: TreeSync<VERSION>,
Returns the TreeSync tree for the group with group id
group_id.§fn group_context<GroupId, GroupContext>(
&self,
group_id: &GroupId,
) -> Result<Option<GroupContext>, <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
GroupContext: GroupContext<VERSION>,
fn group_context<GroupId, GroupContext>(
&self,
group_id: &GroupId,
) -> Result<Option<GroupContext>, <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
GroupContext: GroupContext<VERSION>,
Returns the group context for the group with group id
group_id.§fn interim_transcript_hash<GroupId, InterimTranscriptHash>(
&self,
group_id: &GroupId,
) -> Result<Option<InterimTranscriptHash>, <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
InterimTranscriptHash: InterimTranscriptHash<VERSION>,
fn interim_transcript_hash<GroupId, InterimTranscriptHash>(
&self,
group_id: &GroupId,
) -> Result<Option<InterimTranscriptHash>, <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
InterimTranscriptHash: InterimTranscriptHash<VERSION>,
Returns the interim transcript hash for the group with group id
group_id.§fn confirmation_tag<GroupId, ConfirmationTag>(
&self,
group_id: &GroupId,
) -> Result<Option<ConfirmationTag>, <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ConfirmationTag: ConfirmationTag<VERSION>,
fn confirmation_tag<GroupId, ConfirmationTag>(
&self,
group_id: &GroupId,
) -> Result<Option<ConfirmationTag>, <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ConfirmationTag: ConfirmationTag<VERSION>,
Returns the confirmation tag for the group with group id
group_id.§fn delete_tree<GroupId>(
&self,
group_id: &GroupId,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
fn delete_tree<GroupId>(
&self,
group_id: &GroupId,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
Deletes the tree from storage
§fn delete_confirmation_tag<GroupId>(
&self,
group_id: &GroupId,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
fn delete_confirmation_tag<GroupId>(
&self,
group_id: &GroupId,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
Deletes the confirmation tag from storage
§fn delete_context<GroupId>(
&self,
group_id: &GroupId,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
fn delete_context<GroupId>(
&self,
group_id: &GroupId,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
Deletes the group context for the group with given id
§fn delete_interim_transcript_hash<GroupId>(
&self,
group_id: &GroupId,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
fn delete_interim_transcript_hash<GroupId>(
&self,
group_id: &GroupId,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
Deletes the interim transcript hash for the group with given id
§fn remove_proposal<GroupId, ProposalRef>(
&self,
group_id: &GroupId,
proposal_ref: &ProposalRef,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ProposalRef: ProposalRef<VERSION>,
fn remove_proposal<GroupId, ProposalRef>(
&self,
group_id: &GroupId,
proposal_ref: &ProposalRef,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ProposalRef: ProposalRef<VERSION>,
Removes an individual proposal from the proposal queue of the group with the provided id
§fn clear_proposal_queue<GroupId, ProposalRef>(
&self,
group_id: &GroupId,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ProposalRef: ProposalRef<VERSION>,
fn clear_proposal_queue<GroupId, ProposalRef>(
&self,
group_id: &GroupId,
) -> Result<(), <T as PublicStorageProvider<VERSION>>::PublicError>where
GroupId: GroupId<VERSION>,
ProposalRef: ProposalRef<VERSION>,
Clear the proposal queue for the group with the given id.
§impl<P> PublicStorageProvider for Pwhere
P: PublicStorageProvider<openmls::::storage::{impl#1}::{constant#0}>,
impl<P> PublicStorageProvider for Pwhere
P: PublicStorageProvider<openmls::::storage::{impl#1}::{constant#0}>,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.§impl<T> TryConv for T
impl<T> TryConv for T
§impl<T> WindowExpressionMethods for T
impl<T> WindowExpressionMethods for T
§fn over(self) -> Self::Outputwhere
Self: OverDsl,
fn over(self) -> Self::Outputwhere
Self: OverDsl,
Turn a function call into a window function call Read more
§fn window_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
fn window_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
Add a filter to the current window function Read more
§fn partition_by<E>(self, expr: E) -> Self::Outputwhere
Self: PartitionByDsl<E>,
fn partition_by<E>(self, expr: E) -> Self::Outputwhere
Self: PartitionByDsl<E>,
Add a partition clause to the current window function Read more
§fn window_order<E>(self, expr: E) -> Self::Outputwhere
Self: OrderWindowDsl<E>,
fn window_order<E>(self, expr: E) -> Self::Outputwhere
Self: OrderWindowDsl<E>,
Add a order clause to the current window function Read more