pub struct UpdateSecret(/* private fields */);Available on crate features
message_scheme only.Expand description
Chain secret for the “inner” message ratchet.
Implementations§
Source§impl UpdateSecret
impl UpdateSecret
pub fn from_bytes(bytes: [u8; 32]) -> Self
pub fn try_from_bytes<ID, OP, PKI, DGM, KMG>(
bytes: &[u8],
) -> Result<Self, DcgkaError<ID, OP, PKI, DGM, KMG>>where
PKI: IdentityRegistry<ID, PKI::State> + PreKeyRegistry<ID, OneTimeKeyBundle>,
DGM: AckedGroupMembership<ID, OP>,
KMG: PreKeyManager,
pub fn as_bytes(&self) -> &[u8; 32]
Available on crate features
test_utils only.Trait Implementations§
Source§impl Clone for UpdateSecret
impl Clone for UpdateSecret
Source§fn clone(&self) -> UpdateSecret
fn clone(&self) -> UpdateSecret
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 UpdateSecret
impl Debug for UpdateSecret
Source§impl<'de> Deserialize<'de> for UpdateSecret
impl<'de> Deserialize<'de> for UpdateSecret
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
impl Eq for UpdateSecret
Source§impl From<UpdateSecret> for ChainSecret
impl From<UpdateSecret> for ChainSecret
Source§fn from(value: UpdateSecret) -> Self
fn from(value: UpdateSecret) -> Self
Converts to this type from the input type.
Source§impl From<UpdateSecret> for Secret<RATCHET_KEY_SIZE>
impl From<UpdateSecret> for Secret<RATCHET_KEY_SIZE>
Source§fn from(update_secret: UpdateSecret) -> Self
fn from(update_secret: UpdateSecret) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UpdateSecret
impl PartialEq for UpdateSecret
Source§fn eq(&self, other: &UpdateSecret) -> bool
fn eq(&self, other: &UpdateSecret) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdateSecret
impl Serialize for UpdateSecret
impl StructuralPartialEq for UpdateSecret
Auto Trait Implementations§
impl Freeze for UpdateSecret
impl RefUnwindSafe for UpdateSecret
impl Send for UpdateSecret
impl Sync for UpdateSecret
impl Unpin for UpdateSecret
impl UnsafeUnpin for UpdateSecret
impl UnwindSafe for UpdateSecret
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