[−][src]Struct aqueue::AQueueItem
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]
T: Future<Output = AResult<S>> + Send + Sync + 'static,
S: 'static,
A: Send + Sync + 'static,
pub fn new(
call: impl FnOnce(A) -> T + Send + Sync + 'static,
arg: A
) -> (Receiver<AResult<S>>, Box<dyn QueueItem + Send + Sync>)
[src]
call: impl FnOnce(A) -> T + Send + Sync + 'static,
arg: A
) -> (Receiver<AResult<S>>, Box<dyn QueueItem + Send + Sync>)
Trait Implementations
impl<A, T, S> QueueItem for AQueueItem<A, T, S> where
T: Future<Output = AResult<S>> + Send + Sync,
A: Send + Sync,
[src]
T: Future<Output = AResult<S>> + Send + Sync,
A: Send + Sync,
pub fn run<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = AResult<()>> + Send + Sync + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = AResult<()>> + Send + Sync + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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,
A: Unpin,
impl<A, T, S> !UnwindSafe for AQueueItem<A, T, S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,