pub struct FixedArrayRouteTable<const MAX_TRACKED_DESTINATIONS: usize> { /* private fields */ }Expand description
PartialEq is structural: every slot compares, including unused tail past len. Determinism tests rely on this exactly as RoutingTable already does; it is not “same set of destinations.”
Trait Implementations§
Source§impl<const MAX_TRACKED_DESTINATIONS: usize> Clone for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
impl<const MAX_TRACKED_DESTINATIONS: usize> Clone for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
Source§fn clone(&self) -> FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
fn clone(&self) -> FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const MAX_TRACKED_DESTINATIONS: usize> Debug for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
impl<const MAX_TRACKED_DESTINATIONS: usize> Debug for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
Source§impl<const MAX_TRACKED_DESTINATIONS: usize> Default for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
impl<const MAX_TRACKED_DESTINATIONS: usize> Default for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
Source§fn default() -> FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
fn default() -> FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
Returns the “default value” for a type. Read more
impl<const MAX_TRACKED_DESTINATIONS: usize> Eq for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
Source§impl<const MAX_TRACKED_DESTINATIONS: usize> PartialEq for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
impl<const MAX_TRACKED_DESTINATIONS: usize> PartialEq for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
Source§impl<const MAX_TRACKED_DESTINATIONS: usize> RouteTable for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
impl<const MAX_TRACKED_DESTINATIONS: usize> RouteTable for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
fn capacity(&self) -> usize
fn len(&self) -> 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 index_of(&self, destination: &DestinationHash) -> Option<usize>
fn route_count_via(&self, interface: InterfaceId) -> usize
fn repoint_receiving_interface( &mut self, previous: InterfaceId, current: InterfaceId, now: InstantMillis, ) -> usize
impl<const MAX_TRACKED_DESTINATIONS: usize> StructuralPartialEq for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
Auto Trait Implementations§
impl<const MAX_TRACKED_DESTINATIONS: usize> Freeze for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
impl<const MAX_TRACKED_DESTINATIONS: usize> RefUnwindSafe for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
impl<const MAX_TRACKED_DESTINATIONS: usize> Send for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
impl<const MAX_TRACKED_DESTINATIONS: usize> Sync for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
impl<const MAX_TRACKED_DESTINATIONS: usize> Unpin for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
impl<const MAX_TRACKED_DESTINATIONS: usize> UnsafeUnpin for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
impl<const MAX_TRACKED_DESTINATIONS: usize> UnwindSafe for FixedArrayRouteTable<MAX_TRACKED_DESTINATIONS>
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