[][src]Trait turbosloth::lazy::LazyWorkerObj

pub trait LazyWorkerObj: Send + Sync {
    fn identity(&self) -> u64;
fn clone_boxed(&self) -> Box<dyn LazyWorkerObj>;
fn run_boxed(
        self: Box<Self>,
        context: RunContext
    ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn Any + Send + Sync>, Box<dyn Error + Send + Sync + 'static>>> + Send + 'static>>;
fn debug_name(&self) -> &'static str; }

Required methods

fn identity(&self) -> u64

fn clone_boxed(&self) -> Box<dyn LazyWorkerObj>

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

fn debug_name(&self) -> &'static str

Loading content...

Implementors

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

Loading content...