#[non_exhaustive]pub struct GroupBacklog {
pub pending: u64,
pub lag: Option<u64>,
}Expand description
How much work a consumer group hasn’t finished, as XINFO GROUPS reports it: what
Streams::group_backlog returns.
use legit_streams::GroupBacklog;
let backlog = GroupBacklog::new(64, Some(1_203));
assert_eq!((backlog.pending, backlog.lag), (64, Some(1_203)));Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pending: u64Entries delivered to a consumer of the group and not acknowledged: the length of the group’s pending list.
lag: Option<u64>Entries in the stream not yet delivered to the group. None when the server doesn’t
report it: Redis before 7.0 has no lag, and Redis 7 and newer answer nil once entries
the group hasn’t read have been deleted.
Implementations§
Trait Implementations§
Source§impl Clone for GroupBacklog
impl Clone for GroupBacklog
impl Copy for GroupBacklog
Source§impl Debug for GroupBacklog
impl Debug for GroupBacklog
impl Eq for GroupBacklog
Source§impl Hash for GroupBacklog
impl Hash for GroupBacklog
Source§impl PartialEq for GroupBacklog
impl PartialEq for GroupBacklog
impl StructuralPartialEq for GroupBacklog
Auto Trait Implementations§
impl Forget for GroupBacklog
impl Freeze for GroupBacklog
impl Move for GroupBacklog
impl RefUnwindSafe for GroupBacklog
impl Send for GroupBacklog
impl Sync for GroupBacklog
impl Unpin for GroupBacklog
impl UnsafeUnpin for GroupBacklog
impl UnwindSafe for GroupBacklog
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