zebrad::components::tokio

Trait RuntimeRun

Source
pub(crate) trait RuntimeRun {
    // Required method
    fn run(self, fut: impl Future<Output = Result<(), Report>>);
}
Expand description

Extension trait to centralize entry point for runnable subcommands that depend on tokio

Required Methods§

Source

fn run(self, fut: impl Future<Output = Result<(), Report>>)

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.

Implementations on Foreign Types§

Source§

impl RuntimeRun for Runtime

Source§

fn run(self, fut: impl Future<Output = Result<(), Report>>)

Implementors§