pub trait InputQueue {
type Handle: JobHandle<Err = Self::Err>;
type Err: Debug;
type Stream: Stream<Item = Result<JobResult<Self::Handle>, Self::Err>> + Unpin;
// Required methods
fn get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<JobResult<Self::Handle>, Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn into_stream<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Self::Stream> + Send + 'async_trait>>
where Self: 'async_trait;
}
Expand description
The receive-only side of a queue
Required Associated Types§
Required Methods§
Sourcefn get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<JobResult<Self::Handle>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<JobResult<Self::Handle>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receive a message from this InputQueue
Sourcefn into_stream<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Self::Stream> + Send + 'async_trait>>where
Self: 'async_trait,
fn into_stream<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Self::Stream> + Send + 'async_trait>>where
Self: 'async_trait,
Convert this InputQueue
into a Stream