pub trait IoExecutor:
Send
+ Sync
+ 'static {
// Required methods
fn attach_runtime(
&self,
runtime_id: RuntimeId,
) -> Result<Arc<dyn ExecutorLease>, ExecutorAttachError>;
fn snapshot(&self) -> ExecutorSnapshot;
}Required Methods§
fn attach_runtime( &self, runtime_id: RuntimeId, ) -> Result<Arc<dyn ExecutorLease>, ExecutorAttachError>
fn snapshot(&self) -> ExecutorSnapshot
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".