Trait Runtime

Source
pub trait Runtime: 'static {
    type ScopedSpawner: Spawner<()> + FuncSpawner<(), SpawnHandle = <Self::ScopedSpawner as Spawner<()>>::SpawnHandle> + Blocker + Default + Send + Sync + 'static;
    type BlockingRunner: BlockingRunner;
}
Available on crate feature async only.
Expand description

Runtime trait for CEL asynchronous runtime.

Required Associated Types§

Source

type ScopedSpawner: Spawner<()> + FuncSpawner<(), SpawnHandle = <Self::ScopedSpawner as Spawner<()>>::SpawnHandle> + Blocker + Default + Send + Sync + 'static

Scoped spawner for CEL asynchronous runtime.

Source

type BlockingRunner: BlockingRunner

Blocking runner for CEL asynchronous runtime.

Implementors§

Source§

impl Runtime for AsyncStd

Available on crate feature async-std only.
Source§

impl Runtime for Smol

Available on crate feature smol only.
Source§

impl Runtime for Tokio

Available on crate feature tokio only.