pub struct FixedIndexedRouteTable<const N: usize, const BUCKETS: usize> { /* private fields */ }Trait Implementations§
Source§impl<const N: usize, const BUCKETS: usize> Default for FixedIndexedRouteTable<N, BUCKETS>
impl<const N: usize, const BUCKETS: usize> Default for FixedIndexedRouteTable<N, BUCKETS>
Source§fn default() -> FixedIndexedRouteTable<N, BUCKETS>
fn default() -> FixedIndexedRouteTable<N, BUCKETS>
Returns the “default value” for a type. Read more
Source§impl<const N: usize, const BUCKETS: usize> RouteTable for FixedIndexedRouteTable<N, BUCKETS>
impl<const N: usize, const BUCKETS: usize> RouteTable for FixedIndexedRouteTable<N, BUCKETS>
fn capacity(&self) -> usize
fn len(&self) -> usize
fn index_of(&self, destination: &DestinationHash) -> Option<usize>
fn destinations(&self) -> &[DestinationHash]
fn hops(&self) -> &[u8] ⓘ
fn learned_at(&self) -> &[InstantMillis]
fn last_route_activity_at(&self) -> &[InstantMillis]
fn responsiveness(&self) -> &[RouteResponsiveness]
fn receiving_interfaces(&self) -> &[InterfaceId]
fn next_hops(&self) -> &[NextHop]
fn evidence_ids(&self) -> &[RouteEvidenceId]
fn set_row(&mut self, i: usize, row: RouteEntry)
fn set_evidence_id(&mut self, i: usize, evidence_id: RouteEvidenceId)
fn push( &mut self, destination: DestinationHash, evidence_id: RouteEvidenceId, row: RouteEntry, ) -> Result<usize, TablePushError>
fn swap_remove(&mut self, i: usize, last: usize)
fn is_empty(&self) -> bool
fn route_count_via(&self, interface: InterfaceId) -> usize
fn repoint_receiving_interface( &mut self, previous: InterfaceId, current: InterfaceId, now: InstantMillis, ) -> usize
Auto Trait Implementations§
impl<const N: usize, const BUCKETS: usize> Freeze for FixedIndexedRouteTable<N, BUCKETS>where
[DestinationHash; N]: Freeze,
[u8; N]: Freeze,
[InstantMillis; N]: Freeze,
[RouteResponsiveness; N]: Freeze,
[InterfaceId; N]: Freeze,
[NextHop; N]: Freeze,
[RouteEvidenceId; N]: Freeze,
LemireIndex<BUCKETS>: Freeze,
impl<const N: usize, const BUCKETS: usize> RefUnwindSafe for FixedIndexedRouteTable<N, BUCKETS>where
[DestinationHash; N]: RefUnwindSafe,
[u8; N]: RefUnwindSafe,
[InstantMillis; N]: RefUnwindSafe,
[RouteResponsiveness; N]: RefUnwindSafe,
[InterfaceId; N]: RefUnwindSafe,
[NextHop; N]: RefUnwindSafe,
[RouteEvidenceId; N]: RefUnwindSafe,
LemireIndex<BUCKETS>: RefUnwindSafe,
impl<const N: usize, const BUCKETS: usize> Send for FixedIndexedRouteTable<N, BUCKETS>where
[DestinationHash; N]: Send,
[u8; N]: Send,
[InstantMillis; N]: Send,
[RouteResponsiveness; N]: Send,
[InterfaceId; N]: Send,
[NextHop; N]: Send,
[RouteEvidenceId; N]: Send,
LemireIndex<BUCKETS>: Send,
impl<const N: usize, const BUCKETS: usize> Sync for FixedIndexedRouteTable<N, BUCKETS>where
[DestinationHash; N]: Sync,
[u8; N]: Sync,
[InstantMillis; N]: Sync,
[RouteResponsiveness; N]: Sync,
[InterfaceId; N]: Sync,
[NextHop; N]: Sync,
[RouteEvidenceId; N]: Sync,
LemireIndex<BUCKETS>: Sync,
impl<const N: usize, const BUCKETS: usize> Unpin for FixedIndexedRouteTable<N, BUCKETS>where
[DestinationHash; N]: Unpin,
[u8; N]: Unpin,
[InstantMillis; N]: Unpin,
[RouteResponsiveness; N]: Unpin,
[InterfaceId; N]: Unpin,
[NextHop; N]: Unpin,
[RouteEvidenceId; N]: Unpin,
LemireIndex<BUCKETS>: Unpin,
impl<const N: usize, const BUCKETS: usize> UnsafeUnpin for FixedIndexedRouteTable<N, BUCKETS>where
[DestinationHash; N]: UnsafeUnpin,
[u8; N]: UnsafeUnpin,
[InstantMillis; N]: UnsafeUnpin,
[RouteResponsiveness; N]: UnsafeUnpin,
[InterfaceId; N]: UnsafeUnpin,
[NextHop; N]: UnsafeUnpin,
[RouteEvidenceId; N]: UnsafeUnpin,
LemireIndex<BUCKETS>: UnsafeUnpin,
impl<const N: usize, const BUCKETS: usize> UnwindSafe for FixedIndexedRouteTable<N, BUCKETS>where
[DestinationHash; N]: UnwindSafe,
[u8; N]: UnwindSafe,
[InstantMillis; N]: UnwindSafe,
[RouteResponsiveness; N]: UnwindSafe,
[InterfaceId; N]: UnwindSafe,
[NextHop; N]: UnwindSafe,
[RouteEvidenceId; N]: UnwindSafe,
LemireIndex<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