pub trait SimNodeErased<const MAX_FRAME: usize, const MAX_OUTBOX: usize> {
// Required methods
fn address(&self) -> &NodeAddress;
fn handle(&mut self, src: &NodeAddress, data: &[u8], now: Instant);
fn tick(&mut self, now: Instant);
fn drain_outbox(
&mut self,
out: &mut Vec<(NodeAddress, Vec<u8, MAX_FRAME>), MAX_OUTBOX>,
) -> usize;
}Required Methods§
fn address(&self) -> &NodeAddress
fn handle(&mut self, src: &NodeAddress, data: &[u8], now: Instant)
fn tick(&mut self, now: Instant)
fn drain_outbox( &mut self, out: &mut Vec<(NodeAddress, Vec<u8, MAX_FRAME>), MAX_OUTBOX>, ) -> usize
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".