Struct mls_rs::group::GroupContext
source · pub struct GroupContext {
pub protocol_version: ProtocolVersion,
pub cipher_suite: CipherSuite,
pub group_id: Vec<u8>,
pub epoch: u64,
pub extensions: ExtensionList,
/* private fields */
}
Fields§
§protocol_version: ProtocolVersion
§cipher_suite: CipherSuite
§group_id: Vec<u8>
§epoch: u64
§extensions: ExtensionList
Implementations§
source§impl GroupContext
impl GroupContext
sourcepub fn version(&self) -> ProtocolVersion
pub fn version(&self) -> ProtocolVersion
Get the current protocol version in use by the group.
sourcepub fn cipher_suite(&self) -> CipherSuite
pub fn cipher_suite(&self) -> CipherSuite
Get the current cipher suite in use by the group.
pub fn extensions(&self) -> &ExtensionList
Trait Implementations§
source§impl Clone for GroupContext
impl Clone for GroupContext
source§fn clone(&self) -> GroupContext
fn clone(&self) -> GroupContext
Returns a copy 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 GroupContext
impl Debug for GroupContext
source§impl MlsDecode for GroupContext
impl MlsDecode for GroupContext
source§impl MlsEncode for GroupContext
impl MlsEncode for GroupContext
source§impl MlsSize for GroupContext
impl MlsSize for GroupContext
fn mls_encoded_len(&self) -> usize
source§impl PartialEq for GroupContext
impl PartialEq for GroupContext
impl StructuralPartialEq for GroupContext
Auto Trait Implementations§
impl Freeze for GroupContext
impl RefUnwindSafe for GroupContext
impl Send for GroupContext
impl Sync for GroupContext
impl Unpin for GroupContext
impl UnwindSafe for GroupContext
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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