pub struct SessionComponents {Show 13 fields
pub session_version: Option<u32>,
pub local_identity_public: Option<Vec<u8>>,
pub remote_identity_public: Option<Vec<u8>>,
pub root_key: Option<Vec<u8>>,
pub previous_counter: Option<u32>,
pub sender_chain: Option<SessionChainComponents>,
pub receiver_chains: Vec<SessionChainComponents>,
pub pending_key_exchange: Option<PendingKeyExchangeComponents>,
pub pending_pre_key: Option<PendingPreKeyComponents>,
pub remote_registration_id: Option<u32>,
pub local_registration_id: Option<u32>,
pub needs_refresh: Option<bool>,
pub alice_base_key: Option<Vec<u8>>,
}Expand description
One current or archived session state.
Fields§
§session_version: Option<u32>§local_identity_public: Option<Vec<u8>>§remote_identity_public: Option<Vec<u8>>§root_key: Option<Vec<u8>>§previous_counter: Option<u32>§sender_chain: Option<SessionChainComponents>§receiver_chains: Vec<SessionChainComponents>§pending_key_exchange: Option<PendingKeyExchangeComponents>§pending_pre_key: Option<PendingPreKeyComponents>§remote_registration_id: Option<u32>§local_registration_id: Option<u32>§needs_refresh: Option<bool>§alice_base_key: Option<Vec<u8>>Trait Implementations§
Source§impl Clone for SessionComponents
impl Clone for SessionComponents
Source§impl Debug for SessionComponents
impl Debug for SessionComponents
Source§impl Default for SessionComponents
impl Default for SessionComponents
impl Eq for SessionComponents
Source§impl PartialEq for SessionComponents
impl PartialEq for SessionComponents
impl StructuralPartialEq for SessionComponents
Auto Trait Implementations§
impl Freeze for SessionComponents
impl RefUnwindSafe for SessionComponents
impl Send for SessionComponents
impl Sync for SessionComponents
impl Unpin for SessionComponents
impl UnsafeUnpin for SessionComponents
impl UnwindSafe for SessionComponents
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