pub struct CorePartyState<Provider> {
pub name: &'static str,
pub provider: Provider,
}Available on (32-bit or 64-bit) and (crate features
test-utils) only.Expand description
Struct representing a party’s global state
Fields§
§name: &'static str§provider: ProviderImplementations§
Source§impl<Provider: OpenMlsProvider> CorePartyState<Provider>
impl<Provider: OpenMlsProvider> CorePartyState<Provider>
Sourcepub fn generate_pre_group(
&self,
ciphersuite: Ciphersuite,
) -> PreGroupPartyState<'_, Provider>
pub fn generate_pre_group( &self, ciphersuite: Ciphersuite, ) -> PreGroupPartyState<'_, Provider>
Generates the pre-group state for a CorePartyState
Sourcepub fn generate_pre_group_lifetime(
&self,
ciphersuite: Ciphersuite,
lifetime: impl Into<Option<Lifetime>>,
) -> PreGroupPartyState<'_, Provider>
pub fn generate_pre_group_lifetime( &self, ciphersuite: Ciphersuite, lifetime: impl Into<Option<Lifetime>>, ) -> PreGroupPartyState<'_, Provider>
Generates the pre-group state for a CorePartyState
Auto Trait Implementations§
impl<Provider> Freeze for CorePartyState<Provider>where
Provider: Freeze,
impl<Provider> RefUnwindSafe for CorePartyState<Provider>where
Provider: RefUnwindSafe,
impl<Provider> Send for CorePartyState<Provider>where
Provider: Send,
impl<Provider> Sync for CorePartyState<Provider>where
Provider: Sync,
impl<Provider> Unpin for CorePartyState<Provider>where
Provider: Unpin,
impl<Provider> UnwindSafe for CorePartyState<Provider>where
Provider: 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
§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