pub struct FixedHeapRouteTable<const N: usize, const BUCKETS: usize, A = Global>where
A: Allocator,{ /* private fields */ }Trait Implementations§
Source§impl<const N: usize, const BUCKETS: usize, A> Default for FixedHeapRouteTable<N, BUCKETS, A>
impl<const N: usize, const BUCKETS: usize, A> Default for FixedHeapRouteTable<N, BUCKETS, A>
Source§fn default() -> FixedHeapRouteTable<N, BUCKETS, A>
fn default() -> FixedHeapRouteTable<N, BUCKETS, A>
Returns the “default value” for a type. Read more
Source§impl<const N: usize, const BUCKETS: usize, A> RouteTable for FixedHeapRouteTable<N, BUCKETS, A>where
A: Allocator,
impl<const N: usize, const BUCKETS: usize, A> RouteTable for FixedHeapRouteTable<N, 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 hops(&self) -> &[u8] ⓘ
fn learned_at(&self) -> &[InstantMillis]
fn last_relayed_at(&self) -> &[InstantMillis]
fn responsiveness(&self) -> &[RouteResponsiveness]
fn receiving_interfaces(&self) -> &[InterfaceId]
fn next_hops(&self) -> &[NextHop]
fn set_row(&mut self, i: usize, row: RouteEntry)
fn push( &mut self, destination: DestinationHash, 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, A> Freeze for FixedHeapRouteTable<N, BUCKETS, A>where
A: Freeze,
impl<const N: usize, const BUCKETS: usize, A> RefUnwindSafe for FixedHeapRouteTable<N, BUCKETS, A>where
A: RefUnwindSafe,
impl<const N: usize, const BUCKETS: usize, A> Send for FixedHeapRouteTable<N, BUCKETS, A>where
A: Send,
impl<const N: usize, const BUCKETS: usize, A> Sync for FixedHeapRouteTable<N, BUCKETS, A>where
A: Sync,
impl<const N: usize, const BUCKETS: usize, A> Unpin for FixedHeapRouteTable<N, BUCKETS, A>
impl<const N: usize, const BUCKETS: usize, A> UnsafeUnpin for FixedHeapRouteTable<N, BUCKETS, A>where
A: UnsafeUnpin,
impl<const N: usize, const BUCKETS: usize, A> UnwindSafe for FixedHeapRouteTable<N, BUCKETS, A>where
A: 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