pub struct SessionEntry {
pub registration_id: u32,
pub current_ratchet: CurrentRatchet,
pub index_info: IndexInfo,
pub pending_pre_key: Option<PendingPreKey>,
/* private fields */
}Fields§
§registration_id: u32§current_ratchet: CurrentRatchet§index_info: IndexInfo§pending_pre_key: Option<PendingPreKey>Implementations§
Source§impl SessionEntry
impl SessionEntry
pub fn new() -> Self
pub fn add_chain( &mut self, key: &[u8], value: ChainInfo, ) -> Result<(), Box<dyn Error + Send + Sync>>
pub fn get_chain(&self, key: &[u8]) -> Option<&ChainInfo>
pub fn get_chain_mut(&mut self, key: &[u8]) -> Option<&mut ChainInfo>
pub fn delete_chain( &mut self, key: &[u8], ) -> Result<(), Box<dyn Error + Send + Sync>>
pub fn chains(&self) -> impl Iterator<Item = (Vec<u8>, &ChainInfo)>
Trait Implementations§
Source§impl Clone for SessionEntry
impl Clone for SessionEntry
Source§fn clone(&self) -> SessionEntry
fn clone(&self) -> SessionEntry
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 moreAuto Trait Implementations§
impl Freeze for SessionEntry
impl RefUnwindSafe for SessionEntry
impl Send for SessionEntry
impl Sync for SessionEntry
impl Unpin for SessionEntry
impl UnwindSafe for SessionEntry
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