pub struct ConversationConfiguration {
pub cipher_suite: CipherSuite,
pub external_senders: Vec<ExternalSender>,
}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
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 fn set_external_senders(
&mut self,
external_senders: impl IntoIterator<Item = ExternalSender>,
) -> Result<()>
pub 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§impl Debug for ConversationConfiguration
impl Debug for ConversationConfiguration
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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