pub struct FixedHeapDestinationIdentityTable<const CAPACITY: usize, const INDEX_BUCKETS: usize, A = Global>where
A: Allocator,{ /* private fields */ }Trait Implementations§
Source§impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Default for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Default for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>
Source§fn default() -> FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>
fn default() -> FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>
Returns the “default value” for a type. Read more
Source§impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> DestinationIdentityTable for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
A: Allocator,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> DestinationIdentityTable for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
A: Allocator,
fn capacity(&self) -> usize
fn len(&self) -> usize
fn index_of(&self, destination: &DestinationHash) -> Option<usize>
fn destinations(&self) -> &[DestinationHash]
fn public_keys(&self) -> &[IdentityPublicKeys]
fn announced_at(&self) -> &[InstantMillis]
fn retention(&self) -> &[DestinationIdentityRetentionState]
fn app_data_handles(&self) -> &[AppDataHandle]
fn set_row(&mut self, index: usize, record: DestinationIdentityRecord)
fn push( &mut self, destination: DestinationHash, record: DestinationIdentityRecord, ) -> Result<usize, TablePushError>
fn swap_remove(&mut self, index: usize)
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Freeze for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
Box<[DestinationHash], A>: Freeze,
Box<[IdentityPublicKeys], A>: Freeze,
Box<[InstantMillis], A>: Freeze,
Box<[DestinationIdentityRetentionState], A>: Freeze,
Box<[AppDataHandle], A>: Freeze,
LemireIndex<INDEX_BUCKETS>: Freeze,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> RefUnwindSafe for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
Box<[DestinationHash], A>: RefUnwindSafe,
Box<[IdentityPublicKeys], A>: RefUnwindSafe,
Box<[InstantMillis], A>: RefUnwindSafe,
Box<[DestinationIdentityRetentionState], A>: RefUnwindSafe,
Box<[AppDataHandle], A>: RefUnwindSafe,
LemireIndex<INDEX_BUCKETS>: RefUnwindSafe,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Send for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
Box<[DestinationHash], A>: Send,
Box<[IdentityPublicKeys], A>: Send,
Box<[InstantMillis], A>: Send,
Box<[DestinationIdentityRetentionState], A>: Send,
Box<[AppDataHandle], A>: Send,
LemireIndex<INDEX_BUCKETS>: Send,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Sync for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
Box<[DestinationHash], A>: Sync,
Box<[IdentityPublicKeys], A>: Sync,
Box<[InstantMillis], A>: Sync,
Box<[DestinationIdentityRetentionState], A>: Sync,
Box<[AppDataHandle], A>: Sync,
LemireIndex<INDEX_BUCKETS>: Sync,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> Unpin for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
Box<[DestinationHash], A>: Unpin,
Box<[IdentityPublicKeys], A>: Unpin,
Box<[InstantMillis], A>: Unpin,
Box<[DestinationIdentityRetentionState], A>: Unpin,
Box<[AppDataHandle], A>: Unpin,
LemireIndex<INDEX_BUCKETS>: Unpin,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> UnsafeUnpin for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
Box<[DestinationHash], A>: UnsafeUnpin,
Box<[IdentityPublicKeys], A>: UnsafeUnpin,
Box<[InstantMillis], A>: UnsafeUnpin,
Box<[DestinationIdentityRetentionState], A>: UnsafeUnpin,
Box<[AppDataHandle], A>: UnsafeUnpin,
LemireIndex<INDEX_BUCKETS>: UnsafeUnpin,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize, A> UnwindSafe for FixedHeapDestinationIdentityTable<CAPACITY, INDEX_BUCKETS, A>where
Box<[DestinationHash], A>: UnwindSafe,
Box<[IdentityPublicKeys], A>: UnwindSafe,
Box<[InstantMillis], A>: UnwindSafe,
Box<[DestinationIdentityRetentionState], A>: UnwindSafe,
Box<[AppDataHandle], A>: UnwindSafe,
LemireIndex<INDEX_BUCKETS>: UnwindSafe,
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