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_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> Freeze for FixedIndexedRouteTable<N, BUCKETS>
impl<const N: usize, const BUCKETS: usize> RefUnwindSafe for FixedIndexedRouteTable<N, BUCKETS>
impl<const N: usize, const BUCKETS: usize> Send for FixedIndexedRouteTable<N, BUCKETS>
impl<const N: usize, const BUCKETS: usize> Sync for FixedIndexedRouteTable<N, BUCKETS>
impl<const N: usize, const BUCKETS: usize> Unpin for FixedIndexedRouteTable<N, BUCKETS>
impl<const N: usize, const BUCKETS: usize> UnsafeUnpin for FixedIndexedRouteTable<N, BUCKETS>
impl<const N: usize, const BUCKETS: usize> UnwindSafe for FixedIndexedRouteTable<N, BUCKETS>
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