Skip to main content

IoExecutor

Trait IoExecutor 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§