pub trait ExecutableAsync {
type UserState: Send + Sync;
// Required method
fn execute(
&mut self,
_state: &mut Self::UserState,
) -> impl Future<Output = Result<(), RunnerError>> + Send;
}Required Associated Types§
Required Methods§
fn execute( &mut self, _state: &mut Self::UserState, ) -> impl Future<Output = Result<(), RunnerError>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.