iroh_gossip::proto::sim

Trait EventRecorder

Source
pub trait EventRecorder<PI> {
    // Required methods
    fn record(
        &mut self,
        time: Duration,
        node: PI,
        topic: TopicId,
        event: Event<PI>,
    );
    fn flush(&mut self);
}
Available on crate feature test-utils only.
Expand description

Required Methods§

Source

fn record(&mut self, time: Duration, node: PI, topic: TopicId, event: Event<PI>)

Source

fn flush(&mut self)

Implementors§