http1::server

Trait Executor

source
pub trait Executor {
    type Err: Into<Error>;

    // Required method
    fn execute<F>(&self, f: F) -> Result<(), Self::Err>
       where F: FnOnce() + Send + 'static;
}
Expand description

Provides a mechanism for execute tasks.

Required Associated Types§

Required Methods§

source

fn execute<F>(&self, f: F) -> Result<(), Self::Err>
where F: FnOnce() + Send + 'static,

Execute a task.

Object Safety§

This trait is not object safe.

Implementors§