#[repr(u8)]pub enum RatchetType {
Application = 1,
Handshake = 2,
}Available on crate feature
extensions-draft and crate feature virtual-clients-draft and (32-bit or 64-bit) only.Expand description
Which ratchet a PrivateMessageContext refers to
(mls-virtual-clients draft RatchetType):
enum {
reserved(0),
application(1),
handshake(2),
(255)
} RatchetTypeApplication covers application messages, and
Handshake covers proposals and commits framed as
PrivateMessages in a higher-level group. Both draw a generation ID from
their respective per-leaf ratchet.
Variants§
Application = 1
The per-leaf application-message ratchet.
Handshake = 2
The per-leaf handshake-message ratchet.
Trait Implementations§
Source§impl Clone for RatchetType
impl Clone for RatchetType
Source§fn clone(&self) -> RatchetType
fn clone(&self) -> RatchetType
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 moreimpl Copy for RatchetType
Source§impl Debug for RatchetType
impl Debug for RatchetType
impl Eq for RatchetType
Source§impl PartialEq for RatchetType
impl PartialEq for RatchetType
Source§impl Serialize for RatchetType
impl Serialize for RatchetType
Source§impl Serialize for &RatchetType
impl Serialize for &RatchetType
Source§impl Size for RatchetType
impl Size for RatchetType
fn tls_serialized_len(&self) -> usize
Source§impl Size for &RatchetType
impl Size for &RatchetType
fn tls_serialized_len(&self) -> usize
impl StructuralPartialEq for RatchetType
Auto Trait Implementations§
impl Freeze for RatchetType
impl RefUnwindSafe for RatchetType
impl Send for RatchetType
impl Sync for RatchetType
impl Unpin for RatchetType
impl UnsafeUnpin for RatchetType
impl UnwindSafe for RatchetType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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