pub struct State {
pub messages: u64,
pub bytes: u64,
pub first_sequence: u64,
pub first_timestamp: OffsetDateTime,
pub last_sequence: u64,
pub last_timestamp: OffsetDateTime,
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_sequence: u64
The lowest sequence number still present in this stream
first_timestamp: OffsetDateTime
The time associated with the oldest message still present in this stream
last_sequence: u64
The last sequence number assigned to a message in this stream
last_timestamp: OffsetDateTime
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<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)