MlsPendingMessagePrimaryKey

Struct MlsPendingMessagePrimaryKey 

Source
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

Source§

fn from(value: &MlsPendingMessage) -> Self

Converts to this type from the input type.
Source§

impl KeyType for MlsPendingMessagePrimaryKey

Source§

fn bytes(&self) -> Cow<'_, [u8]>

Get a unique binary representation of this key. Read more
Source§

impl OwnedKeyType for MlsPendingMessagePrimaryKey

Source§

fn from_bytes(bytes: &[u8]) -> Option<Self>

Parse some bytes into an instance of this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T