pub struct ApplicationDataDictionary {
pub component_data: ComponentDataMap,
}
Available on crate feature
draft-ietf-mls-extensions
only.Expand description
Please note that this ApplicationDataDictionary is backed by a BTreeMap
to
take care of ordering and deduplication automatically.
The conversion from/to a Vec<ComponentData>
is done at serialization/deserialization time
Fields§
§component_data: ComponentDataMap
Implementations§
Source§impl ApplicationDataDictionary
impl ApplicationDataDictionary
pub fn iter_components(&self) -> impl Iterator<Item = ComponentDataRef<'_>>
pub fn extract_component<C: Component>(&self) -> MlsSpecResult<Option<C>>
Sourcepub fn insert_or_update_component<C: Component>(
&mut self,
component: &C,
) -> MlsSpecResult<bool>
pub fn insert_or_update_component<C: Component>( &mut self, component: &C, ) -> MlsSpecResult<bool>
Returns true
if newly inserted
Sourcepub fn apply_update(&mut self, update: AppDataUpdate) -> bool
pub fn apply_update(&mut self, update: AppDataUpdate) -> bool
Applies an ApplicationDataUpdate proposal
Returns false
in only one case: when an op
is set to remove
tries to
remove a non-existing component, which is a soft-error in itself
Trait Implementations§
Source§impl Clone for ApplicationDataDictionary
impl Clone for ApplicationDataDictionary
Source§fn clone(&self) -> ApplicationDataDictionary
fn clone(&self) -> ApplicationDataDictionary
Returns a duplicate 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 ApplicationDataDictionary
impl Debug for ApplicationDataDictionary
Source§impl Default for ApplicationDataDictionary
impl Default for ApplicationDataDictionary
Source§fn default() -> ApplicationDataDictionary
fn default() -> ApplicationDataDictionary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApplicationDataDictionary
impl<'de> Deserialize<'de> for ApplicationDataDictionary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Deserialize for ApplicationDataDictionary
impl Deserialize for ApplicationDataDictionary
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl From<ApplicationDataDictionary> for Extension
impl From<ApplicationDataDictionary> for Extension
Source§fn from(val: ApplicationDataDictionary) -> Self
fn from(val: ApplicationDataDictionary) -> Self
Converts to this type from the input type.
Source§impl Serialize for &ApplicationDataDictionary
impl Serialize for &ApplicationDataDictionary
Source§impl Size for &ApplicationDataDictionary
impl Size for &ApplicationDataDictionary
fn tls_serialized_len(&self) -> usize
Source§impl Size for ApplicationDataDictionary
impl Size for ApplicationDataDictionary
fn tls_serialized_len(&self) -> usize
impl Eq for ApplicationDataDictionary
impl StructuralPartialEq for ApplicationDataDictionary
Auto Trait Implementations§
impl Freeze for ApplicationDataDictionary
impl RefUnwindSafe for ApplicationDataDictionary
impl Send for ApplicationDataDictionary
impl Sync for ApplicationDataDictionary
impl Unpin for ApplicationDataDictionary
impl UnwindSafe for ApplicationDataDictionary
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