pub struct ConsumerState {
pub name: SmallBytes,
pub last_seen_ms: u64,
pub pel_count: usize,
}Expand description
Per-consumer cached counters so XINFO CONSUMERS answers in O(1).
Fields§
§name: SmallBytesConsumer name. Read by XINFO CONSUMERS (sprint C).
last_seen_ms: u64Last wall-clock (unix-ms) the consumer interacted with the group (any XREADGROUP / XACK / XCLAIM touch).
pel_count: usizeCached size of this consumer’s slice of the PEL.
Implementations§
Source§impl ConsumerState
impl ConsumerState
Sourcepub fn pending_count(&self) -> usize
pub fn pending_count(&self) -> usize
XINFO CONSUMERS’ pending field.
Sourcepub fn last_seen_ms(&self) -> u64
pub fn last_seen_ms(&self) -> u64
Last unix-ms this consumer interacted with the group.
Trait Implementations§
Source§impl Clone for ConsumerState
impl Clone for ConsumerState
Source§fn clone(&self) -> ConsumerState
fn clone(&self) -> ConsumerState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConsumerState
impl RefUnwindSafe for ConsumerState
impl Send for ConsumerState
impl Sync for ConsumerState
impl Unpin for ConsumerState
impl UnsafeUnpin for ConsumerState
impl UnwindSafe for ConsumerState
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