pub struct FixedIndexedDestinationIdentityTable<const CAPACITY: usize, const INDEX_BUCKETS: usize> { /* private fields */ }Trait Implementations§
Source§impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> Debug for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> Debug for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>
Source§impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> Default for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> Default for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>
Source§fn default() -> FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>
fn default() -> FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>
Returns the “default value” for a type. Read more
Source§impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> DestinationIdentityTable for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> DestinationIdentityTable for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>
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> Freeze for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>where
[DestinationHash; CAPACITY]: Freeze,
[IdentityPublicKeys; CAPACITY]: Freeze,
[InstantMillis; CAPACITY]: Freeze,
[DestinationIdentityRetentionState; CAPACITY]: Freeze,
[AppDataHandle; CAPACITY]: Freeze,
LemireIndex<INDEX_BUCKETS>: Freeze,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> RefUnwindSafe for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>where
[DestinationHash; CAPACITY]: RefUnwindSafe,
[IdentityPublicKeys; CAPACITY]: RefUnwindSafe,
[InstantMillis; CAPACITY]: RefUnwindSafe,
[DestinationIdentityRetentionState; CAPACITY]: RefUnwindSafe,
[AppDataHandle; CAPACITY]: RefUnwindSafe,
LemireIndex<INDEX_BUCKETS>: RefUnwindSafe,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> Send for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>where
[DestinationHash; CAPACITY]: Send,
[IdentityPublicKeys; CAPACITY]: Send,
[InstantMillis; CAPACITY]: Send,
[DestinationIdentityRetentionState; CAPACITY]: Send,
[AppDataHandle; CAPACITY]: Send,
LemireIndex<INDEX_BUCKETS>: Send,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> Sync for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>where
[DestinationHash; CAPACITY]: Sync,
[IdentityPublicKeys; CAPACITY]: Sync,
[InstantMillis; CAPACITY]: Sync,
[DestinationIdentityRetentionState; CAPACITY]: Sync,
[AppDataHandle; CAPACITY]: Sync,
LemireIndex<INDEX_BUCKETS>: Sync,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> Unpin for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>where
[DestinationHash; CAPACITY]: Unpin,
[IdentityPublicKeys; CAPACITY]: Unpin,
[InstantMillis; CAPACITY]: Unpin,
[DestinationIdentityRetentionState; CAPACITY]: Unpin,
[AppDataHandle; CAPACITY]: Unpin,
LemireIndex<INDEX_BUCKETS>: Unpin,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> UnsafeUnpin for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>where
[DestinationHash; CAPACITY]: UnsafeUnpin,
[IdentityPublicKeys; CAPACITY]: UnsafeUnpin,
[InstantMillis; CAPACITY]: UnsafeUnpin,
[DestinationIdentityRetentionState; CAPACITY]: UnsafeUnpin,
[AppDataHandle; CAPACITY]: UnsafeUnpin,
LemireIndex<INDEX_BUCKETS>: UnsafeUnpin,
impl<const CAPACITY: usize, const INDEX_BUCKETS: usize> UnwindSafe for FixedIndexedDestinationIdentityTable<CAPACITY, INDEX_BUCKETS>where
[DestinationHash; CAPACITY]: UnwindSafe,
[IdentityPublicKeys; CAPACITY]: UnwindSafe,
[InstantMillis; CAPACITY]: UnwindSafe,
[DestinationIdentityRetentionState; CAPACITY]: UnwindSafe,
[AppDataHandle; CAPACITY]: 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