pub struct TargetedMessageIn { /* private fields */ }Available on crate feature
targeted-messages-draft only.Expand description
A received targeted message, used as input for processing.
Implementations§
Source§impl TargetedMessageIn
impl TargetedMessageIn
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 TargetedMessageIn
impl Clone for TargetedMessageIn
Source§fn clone(&self) -> TargetedMessageIn
fn clone(&self) -> TargetedMessageIn
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 TargetedMessageIn
impl Debug for TargetedMessageIn
Source§impl Deserialize for TargetedMessageIn
impl Deserialize for TargetedMessageIn
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
Available on crate feature
std only.This function deserializes the
bytes from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl DeserializeBytes for TargetedMessageIn
impl DeserializeBytes for TargetedMessageIn
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 TargetedMessageIn
impl PartialEq for TargetedMessageIn
Source§impl Serialize for TargetedMessageIn
impl Serialize for TargetedMessageIn
Source§impl Serialize for &TargetedMessageIn
impl Serialize for &TargetedMessageIn
Source§impl Size for TargetedMessageIn
impl Size for TargetedMessageIn
fn tls_serialized_len(&self) -> usize
Source§impl Size for &TargetedMessageIn
impl Size for &TargetedMessageIn
fn tls_serialized_len(&self) -> usize
impl StructuralPartialEq for TargetedMessageIn
Auto Trait Implementations§
impl Freeze for TargetedMessageIn
Available on 32-bit or 64-bit only.
impl RefUnwindSafe for TargetedMessageIn
Available on 32-bit or 64-bit only.
impl Send for TargetedMessageIn
Available on 32-bit or 64-bit only.
impl Sync for TargetedMessageIn
Available on 32-bit or 64-bit only.
impl Unpin for TargetedMessageIn
Available on 32-bit or 64-bit only.
impl UnsafeUnpin for TargetedMessageIn
Available on 32-bit or 64-bit only.
impl UnwindSafe for TargetedMessageIn
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
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.