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
sourceimpl Clone for StreamState
impl Clone for StreamState
sourcefn clone(&self) -> StreamState
fn clone(&self) -> StreamState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StreamState
impl Debug for StreamState
sourceimpl<'de> Deserialize<'de> for StreamState
impl<'de> Deserialize<'de> for StreamState
sourcefn 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
sourceimpl Serialize for StreamState
impl Serialize for StreamState
impl Copy for StreamState
Auto Trait Implementations
impl RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl UnwindSafe for StreamState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more