pub struct ParentNode { /* private fields */ }
Expand description
This struct implements the MLS parent node. It contains its public key, parent hash and unmerged leaves. Additionally, it may contain the private key corresponding to the public key.
Trait Implementations§
Source§impl Clone for ParentNode
impl Clone for ParentNode
Source§fn clone(&self) -> ParentNode
fn clone(&self) -> ParentNode
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 ParentNode
impl Debug for ParentNode
Source§impl<'de> Deserialize<'de> for ParentNode
impl<'de> Deserialize<'de> for ParentNode
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 ParentNode
impl Deserialize for ParentNode
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 DeserializeBytes for ParentNode
impl DeserializeBytes for ParentNode
Source§impl From<EncryptionKey> for ParentNode
impl From<EncryptionKey> for ParentNode
Source§fn from(public_key: EncryptionKey) -> Self
fn from(public_key: EncryptionKey) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParentNode
impl PartialEq for ParentNode
Source§impl Serialize for &ParentNode
impl Serialize for &ParentNode
Source§impl Serialize for ParentNode
impl Serialize for ParentNode
Source§impl Serialize for ParentNode
impl Serialize for ParentNode
Source§impl Size for &ParentNode
impl Size for &ParentNode
fn tls_serialized_len(&self) -> usize
Source§impl Size for ParentNode
impl Size for ParentNode
fn tls_serialized_len(&self) -> usize
impl Eq for ParentNode
impl StructuralPartialEq for ParentNode
Auto Trait Implementations§
impl Freeze for ParentNode
impl RefUnwindSafe for ParentNode
impl Send for ParentNode
impl Sync for ParentNode
impl Unpin for ParentNode
impl UnwindSafe for ParentNode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
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