pub struct RatchetTreeExt {
pub tree_data: ExportedTree<'static>,
}
Expand description
Representation of an MLS ratchet tree.
Used to provide new members a copy of the current group state in-band.
Fields§
§tree_data: ExportedTree<'static>
Trait Implementations§
Source§impl Clone for RatchetTreeExt
impl Clone for RatchetTreeExt
Source§fn clone(&self) -> RatchetTreeExt
fn clone(&self) -> RatchetTreeExt
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RatchetTreeExt
impl Debug for RatchetTreeExt
Source§impl MlsCodecExtension for RatchetTreeExt
impl MlsCodecExtension for RatchetTreeExt
fn extension_type() -> ExtensionType
Source§impl MlsDecode for RatchetTreeExt
impl MlsDecode for RatchetTreeExt
Source§impl MlsEncode for RatchetTreeExt
impl MlsEncode for RatchetTreeExt
Source§impl MlsSize for RatchetTreeExt
impl MlsSize for RatchetTreeExt
fn mls_encoded_len(&self) -> usize
Source§impl PartialEq for RatchetTreeExt
impl PartialEq for RatchetTreeExt
impl StructuralPartialEq for RatchetTreeExt
Auto Trait Implementations§
impl Freeze for RatchetTreeExt
impl RefUnwindSafe for RatchetTreeExt
impl Send for RatchetTreeExt
impl Sync for RatchetTreeExt
impl Unpin for RatchetTreeExt
impl UnwindSafe for RatchetTreeExt
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§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 moreSource§impl<T> MlsExtension for Twhere
T: MlsCodecExtension,
impl<T> MlsExtension for Twhere
T: MlsCodecExtension,
Source§type SerializationError = Error
type SerializationError = Error
Error type of the underlying serializer that can convert this type into a
Vec<u8>
.Source§type DeserializationError = Error
type DeserializationError = Error
Error type of the underlying deserializer that can convert a
Vec<u8>
into this type.Source§fn extension_type() -> ExtensionType
fn extension_type() -> ExtensionType
Extension type value that this type represents.
Source§fn to_bytes(&self) -> Result<Vec<u8>, <T as MlsExtension>::SerializationError>
fn to_bytes(&self) -> Result<Vec<u8>, <T as MlsExtension>::SerializationError>
Convert this type to opaque bytes.
Source§fn from_bytes(
data: &[u8],
) -> Result<T, <T as MlsExtension>::DeserializationError>
fn from_bytes( data: &[u8], ) -> Result<T, <T as MlsExtension>::DeserializationError>
Create this type from opaque bytes.
Source§fn into_extension(self) -> Result<Extension, ExtensionError>
fn into_extension(self) -> Result<Extension, ExtensionError>
Convert this type into an Extension.
Source§fn from_extension(ext: &Extension) -> Result<Self, ExtensionError>
fn from_extension(ext: &Extension) -> Result<Self, ExtensionError>
Create this type from an Extension.