pub struct PendingIter<'a> { /* private fields */ }
Expand description
Iterator over expired pending messages.
Implementations§
Source§impl<'a> PendingIter<'a>
impl<'a> PendingIter<'a>
Sourcepub fn new(params: PendingParams<'a>, queue: Queue) -> Self
pub fn new(params: PendingParams<'a>, queue: Queue) -> Self
Creates new iterator
Sourcepub fn set_cursor(&mut self, id: StreamId)
pub fn set_cursor(&mut self, id: StreamId)
Sets cursor position to start after specified id
Sourcepub fn set_idle(&mut self, duration: Duration)
pub fn set_idle(&mut self, duration: Duration)
Sets IDLE timeout, essentially filtering out messages not older than specified duration
Sourcepub async fn set_range_until_now(&mut self) -> Result<(), RedisError>
pub async fn set_range_until_now(&mut self) -> Result<(), RedisError>
Sets end range to task scheduled for execution right now.
Sourcepub async fn next(&mut self) -> Result<Vec<PendingEntry>, RedisError>
pub async fn next(&mut self) -> Result<Vec<PendingEntry>, RedisError>
Attempts to peek at pending messages.
Auto Trait Implementations§
impl<'a> Freeze for PendingIter<'a>
impl<'a> !RefUnwindSafe for PendingIter<'a>
impl<'a> Send for PendingIter<'a>
impl<'a> Sync for PendingIter<'a>
impl<'a> Unpin for PendingIter<'a>
impl<'a> !UnwindSafe for PendingIter<'a>
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