pub struct JoinBuilder<'a, Provider: OpenMlsProvider> { /* private fields */ }Available on 32-bit or 64-bit only.
Expand description
Builder for joining a group.
Create this with StagedWelcome::build_from_welcome.
Implementations§
Source§impl<'a, Provider: OpenMlsProvider> JoinBuilder<'a, Provider>
impl<'a, Provider: OpenMlsProvider> JoinBuilder<'a, Provider>
Sourcepub fn with_ratchet_tree(self, ratchet_tree: RatchetTreeIn) -> Self
pub fn with_ratchet_tree(self, ratchet_tree: RatchetTreeIn) -> Self
The ratchet tree to use for the new group.
Sourcepub fn skip_lifetime_validation(self) -> Self
pub fn skip_lifetime_validation(self) -> Self
Skip the validation of lifetimes in leaf nodes in the ratchet tree. Note that only the leaf nodes are checked that were never updated.
By default they are validated.
Sourcepub fn processed_welcome(&self) -> &ProcessedWelcome
pub fn processed_welcome(&self) -> &ProcessedWelcome
Get a reference to the ProcessedWelcome.
Use this to inspect the Welcome message before validation.
Sourcepub fn build(
self,
) -> Result<StagedWelcome, WelcomeError<Provider::StorageError>>
pub fn build( self, ) -> Result<StagedWelcome, WelcomeError<Provider::StorageError>>
Build the StagedWelcome.
Auto Trait Implementations§
impl<'a, Provider> Freeze for JoinBuilder<'a, Provider>
impl<'a, Provider> RefUnwindSafe for JoinBuilder<'a, Provider>where
Provider: RefUnwindSafe,
impl<'a, Provider> Send for JoinBuilder<'a, Provider>where
Provider: Sync,
impl<'a, Provider> Sync for JoinBuilder<'a, Provider>where
Provider: Sync,
impl<'a, Provider> Unpin for JoinBuilder<'a, Provider>
impl<'a, Provider> UnwindSafe for JoinBuilder<'a, Provider>where
Provider: RefUnwindSafe,
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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