Skip to main content

WorkerWiring

Trait WorkerWiring 

Source
pub trait WorkerWiring<Shape> {
    // Required method
    fn build(self, db: Db, flags: Option<&Flags>) -> Worker;
}

Required Methods§

Source

fn build(self, db: Db, flags: Option<&Flags>) -> Worker

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> WorkerWiring<fn(Db)> for F
where F: FnOnce(Db) -> Worker,