pub struct RatchetTreeIn(/* private fields */);
Expand description
A ratchet tree made of unverified nodes. This is used for deserialization and verification.
Implementations§
Source§impl RatchetTreeIn
impl RatchetTreeIn
Sourcepub fn into_verified(
self,
ciphersuite: Ciphersuite,
crypto: &impl OpenMlsCrypto,
group_id: &GroupId,
) -> Result<RatchetTree, RatchetTreeError>
pub fn into_verified( self, ciphersuite: Ciphersuite, crypto: &impl OpenMlsCrypto, group_id: &GroupId, ) -> Result<RatchetTree, RatchetTreeError>
Create a new RatchetTreeIn
from a vector of nodes after verifying
the nodes.
Trait Implementations§
Source§impl Clone for RatchetTreeIn
impl Clone for RatchetTreeIn
Source§fn clone(&self) -> RatchetTreeIn
fn clone(&self) -> RatchetTreeIn
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 RatchetTreeIn
impl Debug for RatchetTreeIn
Source§impl<'de> Deserialize<'de> for RatchetTreeIn
impl<'de> Deserialize<'de> for RatchetTreeIn
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 RatchetTreeIn
impl Deserialize for RatchetTreeIn
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 RatchetTreeIn
impl DeserializeBytes for RatchetTreeIn
Source§impl From<RatchetTree> for RatchetTreeIn
impl From<RatchetTree> for RatchetTreeIn
Source§fn from(ratchet_tree: RatchetTree) -> Self
fn from(ratchet_tree: RatchetTree) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RatchetTreeIn
impl PartialEq for RatchetTreeIn
Source§impl Serialize for &RatchetTreeIn
impl Serialize for &RatchetTreeIn
Source§impl Serialize for RatchetTreeIn
impl Serialize for RatchetTreeIn
Source§impl Serialize for RatchetTreeIn
impl Serialize for RatchetTreeIn
Source§impl Size for &RatchetTreeIn
impl Size for &RatchetTreeIn
fn tls_serialized_len(&self) -> usize
Source§impl Size for RatchetTreeIn
impl Size for RatchetTreeIn
fn tls_serialized_len(&self) -> usize
impl Eq for RatchetTreeIn
impl StructuralPartialEq for RatchetTreeIn
Auto Trait Implementations§
impl Freeze for RatchetTreeIn
impl RefUnwindSafe for RatchetTreeIn
impl Send for RatchetTreeIn
impl Sync for RatchetTreeIn
impl Unpin for RatchetTreeIn
impl UnwindSafe for RatchetTreeIn
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