pub struct ConversationConfiguration {
pub cipher_suite: CipherSuite,
pub external_senders: Vec<ExternalSender>,
pub custom: CustomConfiguration,
}Expand description
The configuration parameters for a group/conversation
Fields§
§cipher_suite: CipherSuiteThe OpenMls Ciphersuite used in the group
external_senders: Vec<ExternalSender>Delivery service public signature key and credential
custom: CustomConfigurationImplementation specific configuration
Implementations§
Source§impl ConversationConfiguration
impl ConversationConfiguration
Sourcepub fn as_openmls_default_configuration(&self) -> Result<MlsGroupConfig>
pub fn as_openmls_default_configuration(&self) -> Result<MlsGroupConfig>
Generates an MlsGroupConfig from this configuration
Sourcepub fn default_leaf_capabilities() -> Capabilities
pub fn default_leaf_capabilities() -> Capabilities
Default capabilities for every generated openmls::prelude::KeyPackage
Sourcepub async fn set_external_senders(
&mut self,
external_senders: impl IntoIterator<Item = ExternalSender>,
) -> Result<()>
pub async fn set_external_senders( &mut self, external_senders: impl IntoIterator<Item = ExternalSender>, ) -> Result<()>
Updates external senders provided by the delivery service and updates the conversation’s configuration with them.
Trait Implementations§
Source§impl Clone for ConversationConfiguration
impl Clone for ConversationConfiguration
Source§fn clone(&self) -> ConversationConfiguration
fn clone(&self) -> ConversationConfiguration
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 Debug for ConversationConfiguration
impl Debug for ConversationConfiguration
Source§impl Default for ConversationConfiguration
impl Default for ConversationConfiguration
Source§fn default() -> ConversationConfiguration
fn default() -> ConversationConfiguration
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConversationConfiguration
impl RefUnwindSafe for ConversationConfiguration
impl Send for ConversationConfiguration
impl Sync for ConversationConfiguration
impl Unpin for ConversationConfiguration
impl UnsafeUnpin for ConversationConfiguration
impl UnwindSafe for ConversationConfiguration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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