pub struct TargetedMessage { /* private fields */ }Available on crate feature
targeted-messages-draft only.Expand description
A targeted message as defined in draft-ietf-mls-targeted-messages.
struct {
opaque group_id<V>;
uint64 epoch;
uint32 recipient_leaf_index;
opaque authenticated_data<V>;
opaque encrypted_sender_auth_data<V>;
opaque ciphertext<V>;
} TargetedMessage;Implementations§
Source§impl TargetedMessage
impl TargetedMessage
Sourcepub fn epoch(&self) -> GroupEpoch
pub fn epoch(&self) -> GroupEpoch
Returns the epoch.
Sourcepub fn recipient_leaf_index(&self) -> u32
pub fn recipient_leaf_index(&self) -> u32
Returns the recipient leaf index.
Sourcepub fn authenticated_data(&self) -> &[u8] ⓘ
pub fn authenticated_data(&self) -> &[u8] ⓘ
Returns the authenticated data.
Trait Implementations§
Source§impl Clone for TargetedMessage
impl Clone for TargetedMessage
Source§fn clone(&self) -> TargetedMessage
fn clone(&self) -> TargetedMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TargetedMessage
impl Debug for TargetedMessage
Source§impl<'de> Deserialize<'de> for TargetedMessage
impl<'de> Deserialize<'de> for TargetedMessage
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 From<TargetedMessage> for MlsMessageOut
impl From<TargetedMessage> for MlsMessageOut
Source§fn from(targeted_message: TargetedMessage) -> Self
fn from(targeted_message: TargetedMessage) -> Self
Converts to this type from the input type.
Source§impl From<TargetedMessage> for TargetedMessageIn
impl From<TargetedMessage> for TargetedMessageIn
Source§fn from(msg: TargetedMessage) -> Self
fn from(msg: TargetedMessage) -> Self
Converts to this type from the input type.
Source§impl From<TargetedMessageIn> for TargetedMessage
impl From<TargetedMessageIn> for TargetedMessage
Source§fn from(msg: TargetedMessageIn) -> Self
fn from(msg: TargetedMessageIn) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TargetedMessage
impl PartialEq for TargetedMessage
Source§impl Serialize for TargetedMessage
impl Serialize for TargetedMessage
Source§impl Serialize for TargetedMessage
impl Serialize for TargetedMessage
Source§impl Serialize for &TargetedMessage
impl Serialize for &TargetedMessage
Source§impl Size for TargetedMessage
impl Size for TargetedMessage
fn tls_serialized_len(&self) -> usize
Source§impl Size for &TargetedMessage
impl Size for &TargetedMessage
fn tls_serialized_len(&self) -> usize
impl StructuralPartialEq for TargetedMessage
Auto Trait Implementations§
impl Freeze for TargetedMessage
Available on 32-bit or 64-bit only.
impl RefUnwindSafe for TargetedMessage
Available on 32-bit or 64-bit only.
impl Send for TargetedMessage
Available on 32-bit or 64-bit only.
impl Sync for TargetedMessage
Available on 32-bit or 64-bit only.
impl Unpin for TargetedMessage
Available on 32-bit or 64-bit only.
impl UnsafeUnpin for TargetedMessage
Available on 32-bit or 64-bit only.
impl UnwindSafe for TargetedMessage
Available on 32-bit or 64-bit only.
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on 32-bit or 64-bit only.
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on 32-bit or 64-bit only.
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
Available on 32-bit or 64-bit only.
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Available on 32-bit or 64-bit only.
§impl<T> Classify for T
Available on 32-bit or 64-bit only.
impl<T> Classify for T
Available on 32-bit or 64-bit only.
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
Available on 32-bit or 64-bit only.
impl<T> CloneToUninit for Twhere
T: Clone,
Available on 32-bit or 64-bit only.
§impl<T> Declassify for T
Available on 32-bit or 64-bit only.
impl<T> Declassify for T
Available on 32-bit or 64-bit only.
type Declassified = T
fn declassify(self) -> T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Available on 32-bit or 64-bit only.
Source§impl<T> IntoEither for T
Available on 32-bit or 64-bit only.
impl<T> IntoEither for T
Available on 32-bit or 64-bit only.
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§impl<T> Pointable for T
Available on 32-bit or 64-bit only.
impl<T> Pointable for T
Available on 32-bit or 64-bit only.
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Available on 32-bit or 64-bit only.
Source§impl<S, T> Upcast<T> for S
Available on 32-bit or 64-bit only.
impl<S, T> Upcast<T> for S
Available on 32-bit or 64-bit only.