pub struct AutoFutureQueueConsumer { /* private fields */ }Implementations§
Source§impl AutoFutureQueueConsumer
impl AutoFutureQueueConsumer
pub fn new(continuous_query: Arc<ContinuousQuery>) -> Self
pub fn with_now_override(self, now_override: Arc<AtomicU64>) -> Self
pub async fn recv( &self, timeout: Duration, ) -> Option<Vec<QueryPartEvaluationContext>>
Trait Implementations§
Source§impl FutureQueueConsumer for AutoFutureQueueConsumer
impl FutureQueueConsumer for AutoFutureQueueConsumer
Source§fn on_items_due<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_items_due<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called when the polling loop determines items are due.
The consumer is responsible for calling
ContinuousQuery::process_due_futures()
internally, which atomically pops and processes within a session.Auto Trait Implementations§
impl !Freeze for AutoFutureQueueConsumer
impl !RefUnwindSafe for AutoFutureQueueConsumer
impl Send for AutoFutureQueueConsumer
impl Sync for AutoFutureQueueConsumer
impl Unpin for AutoFutureQueueConsumer
impl UnsafeUnpin for AutoFutureQueueConsumer
impl !UnwindSafe for AutoFutureQueueConsumer
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