Struct mls_rs::group::external_commit::ExternalCommitBuilder
source · pub struct ExternalCommitBuilder<C: ClientConfig> { /* private fields */ }
Expand description
A builder that aids with the construction of an external commit.
Implementations§
source§impl<C: ClientConfig> ExternalCommitBuilder<C>
impl<C: ClientConfig> ExternalCommitBuilder<C>
sourcepub fn with_tree_data(self, tree_data: Vec<u8>) -> Self
pub fn with_tree_data(self, tree_data: Vec<u8>) -> Self
Use external tree data if the GroupInfo message does not contain a
RatchetTreeExt
sourcepub fn with_removal(self, to_remove: u32) -> Self
pub fn with_removal(self, to_remove: u32) -> Self
Propose the removal of an old version of the client as part of the external commit. Only one such proposal is allowed.
sourcepub fn with_authenticated_data(self, data: Vec<u8>) -> Self
pub fn with_authenticated_data(self, data: Vec<u8>) -> Self
Add plaintext authenticated data to the resulting commit message.
sourcepub fn with_external_psk(self, psk: ExternalPskId) -> Self
pub fn with_external_psk(self, psk: ExternalPskId) -> Self
Add an external psk to the group as part of the external commit.
sourcepub fn build(
self,
group_info: MlsMessage
) -> Result<(Group<C>, MlsMessage), MlsError>
pub fn build( self, group_info: MlsMessage ) -> Result<(Group<C>, MlsMessage), MlsError>
Build the external commit using a GroupInfo message provided by an existing group member.
Auto Trait Implementations§
impl<C> RefUnwindSafe for ExternalCommitBuilder<C>where
C: RefUnwindSafe,
impl<C> Send for ExternalCommitBuilder<C>
impl<C> Sync for ExternalCommitBuilder<C>
impl<C> Unpin for ExternalCommitBuilder<C>where
C: Unpin,
impl<C> UnwindSafe for ExternalCommitBuilder<C>where
C: UnwindSafe,
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