pub struct HeapSelfRatchetTable { /* private fields */ }Trait Implementations§
Source§impl Default for HeapSelfRatchetTable
impl Default for HeapSelfRatchetTable
Source§fn default() -> HeapSelfRatchetTable
fn default() -> HeapSelfRatchetTable
Returns the “default value” for a type. Read more
Source§impl SelfRatchetTable for HeapSelfRatchetTable
impl SelfRatchetTable for HeapSelfRatchetTable
fn capacity(&self) -> usize
fn retained_per_destination(&self) -> usize
fn len(&self) -> usize
fn destinations(&self) -> &[DestinationHash]
fn last_rotated(&self) -> &[LastRotated]
fn secrets_newest_first(&self, index: usize) -> Option<&[X25519SecretKey]>
fn set_last_rotated(&mut self, index: usize, at: InstantMillis)
fn insert_newest_secret(&mut self, index: usize, secret: X25519SecretKey)
fn clear_secrets(&mut self, index: usize)
fn push( &mut self, destination: DestinationHash, ) -> Result<(), TrackRatchetsError>
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for HeapSelfRatchetTable
impl RefUnwindSafe for HeapSelfRatchetTable
impl Send for HeapSelfRatchetTable
impl Sync for HeapSelfRatchetTable
impl Unpin for HeapSelfRatchetTable
impl UnsafeUnpin for HeapSelfRatchetTable
impl UnwindSafe for HeapSelfRatchetTable
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