#[non_exhaustive]pub struct Extension {
pub extension_type: ExtensionType,
pub extension_data: Vec<u8>,
}
Expand description
An MLS protocol extension.
Extensions are used as customization points in various parts of the MLS protocol and are inserted into an ExtensionList.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.extension_type: ExtensionType
Extension type of this extension
extension_data: Vec<u8>
Data held within this extension
Implementations§
Trait Implementations§
source§impl Extend<Extension> for ExtensionList
impl Extend<Extension> for ExtensionList
source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = Extension>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = Extension>,
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl FromIterator<Extension> for ExtensionList
impl FromIterator<Extension> for ExtensionList
source§fn from_iter<T>(iter: T) -> ExtensionListwhere
T: IntoIterator<Item = Extension>,
fn from_iter<T>(iter: T) -> ExtensionListwhere
T: IntoIterator<Item = Extension>,
Creates a value from an iterator. Read more
source§impl PartialEq for Extension
impl PartialEq for Extension
impl Eq for Extension
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl Freeze for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
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