Struct redis_queue::types::GroupInfo
source · pub struct GroupInfo {
pub name: String,
pub consumers: u64,
pub pending: u64,
pub last_delivered_id: StreamId,
}Expand description
Group information
Fields§
§name: StringGroup name
consumers: u64Number of consumers in the group
pending: u64Number of messages that are read but yet to be acknowledged.
last_delivered_id: StreamIdID of last message delivered to group’s consumers
Trait Implementations§
source§impl FromRedisValue for GroupInfo
impl FromRedisValue for GroupInfo
source§fn from_redis_value(value: &Value) -> RedisResult<Self>
fn from_redis_value(value: &Value) -> RedisResult<Self>
Given a redis
Value this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated.source§fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
Similar to
from_redis_value but constructs a vector of objects
from another vector of values. This primarily exists internally
to customize the behavior for vectors of tuples.Auto Trait Implementations§
impl RefUnwindSafe for GroupInfo
impl Send for GroupInfo
impl Sync for GroupInfo
impl Unpin for GroupInfo
impl UnwindSafe for GroupInfo
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