[][src]Struct autopool::Job

pub struct Job<In, Out> {
    pub task: In,
    pub close: Receiver<()>,
    pub results: Sender<Out>,
}

Fields

task: Inclose: Receiver<()>results: Sender<Out>

Implementations

impl<In, Out> Job<In, Out>[src]

pub fn new(task: In, close: Receiver<()>, results: Sender<Out>) -> Self[src]

pub fn stop_requested(&self) -> bool[src]

Auto Trait Implementations

impl<In, Out> !RefUnwindSafe for Job<In, Out>

impl<In, Out> Send for Job<In, Out> where
    In: Send,
    Out: Send

impl<In, Out> Sync for Job<In, Out> where
    In: Sync,
    Out: Send

impl<In, Out> Unpin for Job<In, Out> where
    In: Unpin

impl<In, Out> !UnwindSafe for Job<In, Out>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.