Trait near_async::test_loop::adhoc::AdhocEventSender
source · pub trait AdhocEventSender<Data: 'static> {
// Required methods
fn send_adhoc_event(
&self,
description: &str,
f: impl FnOnce(&mut Data) + Send + 'static,
);
fn schedule_adhoc_event(
&self,
description: &str,
f: impl FnOnce(&mut Data) + Send + 'static,
delay: Duration,
);
}Expand description
Allows DelaySender to be used to send or schedule adhoc events.
Required Methods§
fn send_adhoc_event( &self, description: &str, f: impl FnOnce(&mut Data) + Send + 'static, )
fn schedule_adhoc_event( &self, description: &str, f: impl FnOnce(&mut Data) + Send + 'static, delay: Duration, )
Object Safety§
This trait is not object safe.