pub struct XStreamInfo {
pub length: usize,
pub radix_tree_keys: usize,
pub radix_tree_nodes: usize,
pub groups: usize,
pub last_generated_id: String,
pub max_deleted_entry_id: String,
pub entries_added: usize,
pub first_entry: StreamEntry<String>,
pub last_entry: StreamEntry<String>,
pub recorded_first_entry_id: String,
}
Expand description
Stream info returned by the xinfo_stream
command.
Fields§
§length: usize
the number of entries in the stream (see xlen
)
radix_tree_keys: usize
the number of keys in the underlying radix data structure
radix_tree_nodes: usize
the number of nodes in the underlying radix data structure
groups: usize
the number of consumer groups defined for the stream
last_generated_id: String
the ID of the least-recently entry that was added to the stream
max_deleted_entry_id: String
the maximal entry ID that was deleted from the stream
entries_added: usize
the count of all entries added to the stream during its lifetime
first_entry: StreamEntry<String>
the ID and field-value tuples of the first entry in the stream
last_entry: StreamEntry<String>
the ID and field-value tuples of the last entry in the stream
recorded_first_entry_id: String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for XStreamInfo
impl<'de> Deserialize<'de> for XStreamInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for XStreamInfo
impl RefUnwindSafe for XStreamInfo
impl Send for XStreamInfo
impl Sync for XStreamInfo
impl Unpin for XStreamInfo
impl UnwindSafe for XStreamInfo
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