pub struct HashReference { /* private fields */ }
Expand description
A reference to an MLS object computed as a hash of the value.
Implementations§
Source§impl HashReference
impl HashReference
Sourcepub fn new(
value: &[u8],
ciphersuite: Ciphersuite,
crypto: &impl OpenMlsCrypto,
label: &[u8],
) -> Result<Self, CryptoError>
pub fn new( value: &[u8], ciphersuite: Ciphersuite, crypto: &impl OpenMlsCrypto, label: &[u8], ) -> Result<Self, CryptoError>
Compute a new HashReference
value for a value
.
Trait Implementations§
Source§impl Clone for HashReference
impl Clone for HashReference
Source§fn clone(&self) -> HashReference
fn clone(&self) -> HashReference
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 HashReference
impl Debug for HashReference
Source§impl<'de> Deserialize<'de> for HashReference
impl<'de> Deserialize<'de> for HashReference
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 HashReference
impl Deserialize for HashReference
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 HashReference
impl DeserializeBytes for HashReference
Source§impl Display for HashReference
impl Display for HashReference
Source§impl Hash for HashReference
impl Hash for HashReference
Source§impl Ord for HashReference
impl Ord for HashReference
Source§fn cmp(&self, other: &HashReference) -> Ordering
fn cmp(&self, other: &HashReference) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HashReference
impl PartialEq for HashReference
Source§impl PartialOrd for HashReference
impl PartialOrd for HashReference
Source§impl Serialize for &HashReference
impl Serialize for &HashReference
Source§impl Serialize for HashReference
impl Serialize for HashReference
Source§impl Serialize for HashReference
impl Serialize for HashReference
Source§impl Size for &HashReference
impl Size for &HashReference
fn tls_serialized_len(&self) -> usize
Source§impl Size for HashReference
impl Size for HashReference
fn tls_serialized_len(&self) -> usize
impl Eq for HashReference
impl StructuralPartialEq for HashReference
Auto Trait Implementations§
impl Freeze for HashReference
impl RefUnwindSafe for HashReference
impl Send for HashReference
impl Sync for HashReference
impl Unpin for HashReference
impl UnwindSafe for HashReference
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