pub struct MlsPendingMessagePrimaryKey(/* private fields */);Expand description
MlsPendingMessages have no distinct primary key;
they must always be accessed via the SearchableEntity and
DeletableBySearchKey traits.
However the keystore’s support of internal transactions demands a primary key:
ultimately that structure boils down to Map<CollectionName, Map<PrimaryKey, Entity>>, so anything other
than a full primary key just breaks things.
We use xxhash3 as a fast hash implementation, and take 128 bits of hash to ensure
that the chance of a collision is effectively 0.
Trait Implementations§
Source§impl From<&MlsPendingMessage> for MlsPendingMessagePrimaryKey
impl From<&MlsPendingMessage> for MlsPendingMessagePrimaryKey
Source§fn from(value: &MlsPendingMessage) -> Self
fn from(value: &MlsPendingMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MlsPendingMessagePrimaryKey
impl RefUnwindSafe for MlsPendingMessagePrimaryKey
impl Send for MlsPendingMessagePrimaryKey
impl Sync for MlsPendingMessagePrimaryKey
impl Unpin for MlsPendingMessagePrimaryKey
impl UnwindSafe for MlsPendingMessagePrimaryKey
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> 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