Struct nats::jetstream::StreamState
source · pub struct StreamState {
pub messages: u64,
pub bytes: u64,
pub first_seq: u64,
pub first_ts: DateTime,
pub last_seq: u64,
pub last_ts: DateTime,
pub consumer_count: usize,
}
Expand description
information about the given stream.
Fields§
§messages: u64
The number of messages contained in this stream
bytes: u64
The number of bytes of all messages contained in this stream
first_seq: u64
The lowest sequence number still present in this stream
first_ts: DateTime
The time associated with the oldest message still present in this stream
last_seq: u64
The last sequence number assigned to a message in this stream
last_ts: DateTime
The time that the last message was received by this stream
consumer_count: usize
The number of consumers configured to consume this stream
Trait Implementations§
source§impl Clone for StreamState
impl Clone for StreamState
source§fn clone(&self) -> StreamState
fn clone(&self) -> StreamState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StreamState
impl Debug for StreamState
source§impl<'de> Deserialize<'de> for StreamState
impl<'de> Deserialize<'de> for StreamState
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
source§impl Serialize for StreamState
impl Serialize for StreamState
impl Copy for StreamState
Auto Trait Implementations§
impl Freeze for StreamState
impl RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl UnwindSafe for StreamState
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