[][src]Trait amadeus::prelude::_

pub trait _: UnwindSafe + RefUnwindSafe + Send + Sync + Unpin {
    fn spawn<F, T>(
        &self,
        work: F
    ) -> Pin<Box<dyn Future<Output = Result<T, Box<dyn Error + 'static + Send>>> + 'static + Send>>
    where
        F: FnOnce() -> T + 'static,
        T: Send + 'static
; }

Required methods

fn spawn<F, T>(
    &self,
    work: F
) -> Pin<Box<dyn Future<Output = Result<T, Box<dyn Error + 'static + Send>>> + 'static + Send>> where
    F: FnOnce() -> T + 'static,
    T: Send + 'static, 

Loading content...

Implementations on Foreign Types

impl<'_, P> LocalPool for &'_ P where
    P: LocalPool + ?Sized
[src]

Loading content...

Implementors

impl LocalPool for LocalPool[src]

Loading content...