[][src]Trait turbosloth::lazy::LazyWorkerImpl

pub trait LazyWorkerImpl {
    type Value: Send + Sync + 'static;
    type Error: Into<Box<dyn Error + Sync + Send + 'static>>;
    fn run(
        self,
        ctx: RunContext
    ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn Any + Send + Sync>, Box<dyn Error + Send + Sync + 'static>>> + Send + 'static>>; }

Associated Types

type Value: Send + Sync + 'static

type Error: Into<Box<dyn Error + Sync + Send + 'static>>

Loading content...

Required methods

fn run(
    self,
    ctx: RunContext
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn Any + Send + Sync>, Box<dyn Error + Send + Sync + 'static>>> + Send + 'static>>

Loading content...

Implementors

impl<T: LazyReqs, E, W> LazyWorkerImpl for W where
    W: LazyWorker<Output = Result<T, E>> + Clone + Hash,
    E: Into<Box<dyn Error + Sync + Send + 'static>>, 
[src]

type Value = T

type Error = E

Loading content...