Struct mls_rs::extension::built_in::RatchetTreeExt
source · 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 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 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
source§fn eq(&self, other: &RatchetTreeExt) -> bool
fn eq(&self, other: &RatchetTreeExt) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RatchetTreeExt
Auto Trait Implementations§
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> MlsExtension for Twhere
T: MlsCodecExtension,
impl<T> MlsExtension for Twhere
T: MlsCodecExtension,
§type SerializationError = Error
type SerializationError = Error
Error type of the underlying serializer that can convert this type into a
Vec<u8>
.§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.