[][src]Struct aqueue::AQueueItem

pub struct AQueueItem<A, T, S> { /* fields omitted */ }

Implementations

impl<A, T, S> AQueueItem<A, T, S> where
    T: Future<Output = AResult<S>> + Send + Sync + 'static,
    S: 'static,
    A: Send + Sync + 'static, 
[src]

pub fn new(
    call: impl FnOnce(A) -> T + Send + Sync + 'static,
    arg: A
) -> (Receiver<AResult<S>>, Box<dyn QueueItem + Send + Sync>)
[src]

Trait Implementations

impl<A, T, S> QueueItem for AQueueItem<A, T, S> where
    T: Future<Output = AResult<S>> + Send + Sync,
    A: Send + Sync
[src]

impl<A, T, S> Send for AQueueItem<A, T, S>[src]

impl<A, T, S> Sync for AQueueItem<A, T, S>[src]

Auto Trait Implementations

impl<A, T, S> !RefUnwindSafe for AQueueItem<A, T, S>

impl<A, T, S> Unpin for AQueueItem<A, T, S> where
    A: Unpin

impl<A, T, S> !UnwindSafe for AQueueItem<A, T, S>

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.