pub trait SeenPathRequestTable {
// Required methods
fn capacity(&self) -> usize;
fn len(&self) -> usize;
fn destinations(&self) -> &[DestinationHash];
fn ids(&self) -> &[[u8; 16]];
fn remember(&mut self, destination: DestinationHash, id: [u8; 16]);
// Provided method
fn is_empty(&self) -> bool { ... }
}Required Methods§
fn capacity(&self) -> usize
fn len(&self) -> usize
fn destinations(&self) -> &[DestinationHash]
fn ids(&self) -> &[[u8; 16]]
Sourcefn remember(&mut self, destination: DestinationHash, id: [u8; 16])
fn remember(&mut self, destination: DestinationHash, id: [u8; 16])
Record one (destination, id), evicting the oldest when full (FIFO).
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".