pub struct InMemoryFlowTaskQueue { /* private fields */ }Expand description
In-process FIFO queue for tests, embedded hosts, and local workers.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryFlowTaskQueue
impl Debug for InMemoryFlowTaskQueue
Source§impl Default for InMemoryFlowTaskQueue
impl Default for InMemoryFlowTaskQueue
Source§fn default() -> InMemoryFlowTaskQueue
fn default() -> InMemoryFlowTaskQueue
Returns the “default value” for a type. Read more
Source§impl FlowTaskQueue for InMemoryFlowTaskQueue
impl FlowTaskQueue for InMemoryFlowTaskQueue
fn enqueue<'life0, 'async_trait>(
&'life0 self,
task: FlowTask,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn lease<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<FlowTaskLease>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ack<'life0, 'life1, 'async_trait>(
&'life0 self,
_lease_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn len<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn requeue_inflight<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn dequeue<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<FlowTask>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_empty<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for InMemoryFlowTaskQueue
impl !RefUnwindSafe for InMemoryFlowTaskQueue
impl Send for InMemoryFlowTaskQueue
impl Sync for InMemoryFlowTaskQueue
impl Unpin for InMemoryFlowTaskQueue
impl UnsafeUnpin for InMemoryFlowTaskQueue
impl UnwindSafe for InMemoryFlowTaskQueue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more