pub enum KemSessionState {
Pending,
Round1Complete,
Completed,
Expired,
Aborted,
}Expand description
State of a decapsulation session.
Variants§
Pending
Session created, awaiting round 1 messages.
Round1Complete
Round 1 complete, awaiting round 2 messages.
Completed
Decapsulation complete; shared secret available.
Expired
Session expired before completion.
Aborted
Session aborted due to error.
Trait Implementations§
Source§impl Clone for KemSessionState
impl Clone for KemSessionState
Source§fn clone(&self) -> KemSessionState
fn clone(&self) -> KemSessionState
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 KemSessionState
Source§impl Debug for KemSessionState
impl Debug for KemSessionState
Source§impl<'de> Deserialize<'de> for KemSessionState
impl<'de> Deserialize<'de> for KemSessionState
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
impl Eq for KemSessionState
Source§impl PartialEq for KemSessionState
impl PartialEq for KemSessionState
Source§fn eq(&self, other: &KemSessionState) -> bool
fn eq(&self, other: &KemSessionState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KemSessionState
impl Serialize for KemSessionState
impl StructuralPartialEq for KemSessionState
Auto Trait Implementations§
impl Freeze for KemSessionState
impl RefUnwindSafe for KemSessionState
impl Send for KemSessionState
impl Sync for KemSessionState
impl Unpin for KemSessionState
impl UnsafeUnpin for KemSessionState
impl UnwindSafe for KemSessionState
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