Skip to main content

AsyncScopeSource

Trait AsyncScopeSource 

Source
pub trait AsyncScopeSource {
    // Required method
    fn work_scope(&self) -> Result<AsyncScope, AsyncError>;
}
Expand description

A local owner that can bind work to its lifetime without exposing a node to an executor. Implemented by AppContext and runtime NodeContext.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§