pub trait RouteTable {
Show 16 methods
// Required methods
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);
// Provided methods
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 { ... }
}Required Methods§
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)
Provided Methods§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".