#[repr(u32)]pub enum PqxdhInboxProtocol {
EchoService = 1_000,
WhatsAppBot = 1_202,
Ephemeral(u32),
CustomProtocol(u32),
}Expand description
PQXDH-based inbox protocols
Reserved ranges:
- 10000-10999: Core PQXDH protocols (group invites, direct messages, etc.)
- 10000-10999: Ephemeral group invites (randomized within this range)
- 11000-11999: PQXDH RPC services
- 15001-19999: Available for custom/experimental PQXDH protocols
Variants§
EchoService = 1_000
WhatsAppBot = 1_202
Ephemeral(u32)
12000-12999 - Ephemeral Inboxes, using a randomized value in this range expected to only live for a short time and a specific purpose or connection like sharing a group invite
CustomProtocol(u32)
Implementations§
Trait Implementations§
Source§impl Clone for PqxdhInboxProtocol
impl Clone for PqxdhInboxProtocol
Source§fn clone(&self) -> PqxdhInboxProtocol
fn clone(&self) -> PqxdhInboxProtocol
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 PqxdhInboxProtocol
impl Debug for PqxdhInboxProtocol
Source§impl<'de> Deserialize<'de> for PqxdhInboxProtocol
impl<'de> Deserialize<'de> for PqxdhInboxProtocol
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 Display for PqxdhInboxProtocol
impl Display for PqxdhInboxProtocol
Source§impl From<&PqxdhInboxProtocol> for u32
impl From<&PqxdhInboxProtocol> for u32
Source§fn from(val: &PqxdhInboxProtocol) -> Self
fn from(val: &PqxdhInboxProtocol) -> Self
Converts to this type from the input type.
Source§impl From<PqxdhInboxProtocol> for u32
impl From<PqxdhInboxProtocol> for u32
Source§fn from(val: PqxdhInboxProtocol) -> Self
fn from(val: PqxdhInboxProtocol) -> Self
Converts to this type from the input type.
Source§impl From<u32> for PqxdhInboxProtocol
impl From<u32> for PqxdhInboxProtocol
Source§impl Ord for PqxdhInboxProtocol
impl Ord for PqxdhInboxProtocol
Source§impl PartialEq for PqxdhInboxProtocol
impl PartialEq for PqxdhInboxProtocol
Source§impl PartialOrd for PqxdhInboxProtocol
impl PartialOrd for PqxdhInboxProtocol
Source§impl Serialize for PqxdhInboxProtocol
impl Serialize for PqxdhInboxProtocol
impl Eq for PqxdhInboxProtocol
impl StructuralPartialEq for PqxdhInboxProtocol
Auto Trait Implementations§
impl Freeze for PqxdhInboxProtocol
impl RefUnwindSafe for PqxdhInboxProtocol
impl Send for PqxdhInboxProtocol
impl Sync for PqxdhInboxProtocol
impl Unpin for PqxdhInboxProtocol
impl UnwindSafe for PqxdhInboxProtocol
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more