pub struct ChainSecret(/* private fields */);Expand description
Chain secret for the “outer” key-agreement ratchet.
Implementations§
Source§impl ChainSecret
impl ChainSecret
pub fn from_welcome() -> Self
pub fn from_add() -> Self
pub fn from_bytes(bytes: [u8; 32]) -> Self
pub fn try_from_bytes<ID, OP, PKI, DGM, KEY>(
bytes: &[u8],
) -> Result<Self, DcgkaError<ID, OP, PKI, DGM, KEY>>where
PKI: IdentityRegistry<ID, PKI::State> + PreKeyRegistry<ID, OneTimeKeyBundle>,
DGM: AckedGroupMembership<ID, OP>,
KEY: PreKeyManager,
Trait Implementations§
Source§impl Clone for ChainSecret
impl Clone for ChainSecret
Source§fn clone(&self) -> ChainSecret
fn clone(&self) -> ChainSecret
Returns a duplicate 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 ChainSecret
impl Debug for ChainSecret
Source§impl<'de> Deserialize<'de> for ChainSecret
impl<'de> Deserialize<'de> for ChainSecret
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 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 PartialEq for ChainSecret
impl PartialEq for ChainSecret
Source§impl Serialize for ChainSecret
impl Serialize for ChainSecret
impl Eq for ChainSecret
impl StructuralPartialEq for ChainSecret
Auto Trait Implementations§
impl Freeze for ChainSecret
impl RefUnwindSafe for ChainSecret
impl Send for ChainSecret
impl Sync for ChainSecret
impl Unpin for ChainSecret
impl UnwindSafe for ChainSecret
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