pub struct StoredEpochEncryptionKeypairPkRef<'a> {
pub conversation_id: &'a ConversationIdRef,
pub own_leaf_idx: u32,
pub epoch: u64,
}Expand description
Borrowed primary key type for StoredEpochEncryptionKeypair
Fields§
§conversation_id: &'a ConversationIdRef§own_leaf_idx: u32§epoch: u64Implementations§
Source§impl<'a> StoredEpochEncryptionKeypairPkRef<'a>
impl<'a> StoredEpochEncryptionKeypairPkRef<'a>
Sourcepub fn parse_bytes(bytes: &'a [u8]) -> CryptoKeystoreResult<Self>
pub fn parse_bytes(bytes: &'a [u8]) -> CryptoKeystoreResult<Self>
Parse this PK from its binary representation
OpenMLS assumes that all primary keys are byte slices, and designed its trait structure accordingly. So we have to be able to parse a (probably-freshly-constructed) slice into a discrete type.
Trait Implementations§
Source§impl<'a> Clone for StoredEpochEncryptionKeypairPkRef<'a>
impl<'a> Clone for StoredEpochEncryptionKeypairPkRef<'a>
Source§fn clone(&self) -> StoredEpochEncryptionKeypairPkRef<'a>
fn clone(&self) -> StoredEpochEncryptionKeypairPkRef<'a>
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<'a> From<&'a StoredEpochEncryptionKeypairPk> for StoredEpochEncryptionKeypairPkRef<'a>
impl<'a> From<&'a StoredEpochEncryptionKeypairPk> for StoredEpochEncryptionKeypairPkRef<'a>
Source§fn from(_: &'a StoredEpochEncryptionKeypairPk) -> Self
fn from(_: &'a StoredEpochEncryptionKeypairPk) -> Self
Converts to this type from the input type.
Source§impl<'a> From<StoredEpochEncryptionKeypairPkRef<'a>> for StoredEpochEncryptionKeypairPk
impl<'a> From<StoredEpochEncryptionKeypairPkRef<'a>> for StoredEpochEncryptionKeypairPk
Source§fn from(_: StoredEpochEncryptionKeypairPkRef<'a>) -> Self
fn from(_: StoredEpochEncryptionKeypairPkRef<'a>) -> Self
Converts to this type from the input type.
impl<'a> Copy for StoredEpochEncryptionKeypairPkRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for StoredEpochEncryptionKeypairPkRef<'a>
impl<'a> RefUnwindSafe for StoredEpochEncryptionKeypairPkRef<'a>
impl<'a> Send for StoredEpochEncryptionKeypairPkRef<'a>
impl<'a> Sync for StoredEpochEncryptionKeypairPkRef<'a>
impl<'a> Unpin for StoredEpochEncryptionKeypairPkRef<'a>
impl<'a> UnsafeUnpin for StoredEpochEncryptionKeypairPkRef<'a>
impl<'a> UnwindSafe for StoredEpochEncryptionKeypairPkRef<'a>
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