Skip to main content

QueueIterator

Trait QueueIterator 

Source
pub trait QueueIterator<V: InternalMessageValue>: Send {
    // Required methods
    fn next(&mut self, with_new: bool) -> Result<Option<IterItem<V>>>;
    fn current_position(&self) -> FastHashMap<ShardIdent, QueueKey>;
    fn process_new_messages(&mut self) -> Result<Option<IterItem<V>>>;
}

Required Methods§

Source

fn next(&mut self, with_new: bool) -> Result<Option<IterItem<V>>>

Get next message

Source

fn current_position(&self) -> FastHashMap<ShardIdent, QueueKey>

Source

fn process_new_messages(&mut self) -> Result<Option<IterItem<V>>>

Implementors§