pub trait ReverseRouteTable {
Show 13 methods
// Required methods
fn capacity(&self) -> usize;
fn len(&self) -> usize;
fn proof_destinations(&self) -> &[DestinationHash];
fn received_interfaces(&self) -> &[InterfaceId];
fn outbound_interfaces(&self) -> &[InterfaceId];
fn expires_ats(&self) -> &[InstantMillis];
fn push(&mut self, entry: ReverseRouteEntry);
fn swap_remove(&mut self, index: usize);
// Provided methods
fn is_empty(&self) -> bool { ... }
fn index_of(&self, proof_destination: &DestinationHash) -> Option<usize> { ... }
fn first_expired(&mut self, now: InstantMillis) -> Option<usize> { ... }
fn prefers_linear_expiry_cull(&mut self, _now: InstantMillis) -> bool { ... }
fn invalidate_expiry_index(&mut self) { ... }
}Required Methods§
fn capacity(&self) -> usize
fn len(&self) -> usize
fn proof_destinations(&self) -> &[DestinationHash]
fn received_interfaces(&self) -> &[InterfaceId]
fn outbound_interfaces(&self) -> &[InterfaceId]
fn expires_ats(&self) -> &[InstantMillis]
fn push(&mut self, entry: ReverseRouteEntry)
fn swap_remove(&mut self, index: usize)
Provided Methods§
fn is_empty(&self) -> bool
fn index_of(&self, proof_destination: &DestinationHash) -> Option<usize>
fn first_expired(&mut self, now: InstantMillis) -> Option<usize>
fn prefers_linear_expiry_cull(&mut self, _now: InstantMillis) -> bool
fn invalidate_expiry_index(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".