pub struct StreamStatus {
pub ready: bool,
pub generation: u64,
pub lost_messages: u64,
pub ended: Option<StreamEnd>,
}Expand description
Local lifecycle notification, never accepted from the broker wire.
lost_messages is cumulative; any increase requires REST reconciliation
for account activity. A new session does not recover missed executions.
It counts exactly the frames dropped at a full queue. Frames queued
before a gap are delivered ahead of the status that reports it.
ended is set when the stream stopped for good: no reconnect follows
until the caller connects again. A receiver reports that status, then
ends once nothing is left to deliver.
Fields§
§ready: bool§generation: u64§lost_messages: u64§ended: Option<StreamEnd>Trait Implementations§
Source§impl Clone for StreamStatus
impl Clone for StreamStatus
Source§impl Debug for StreamStatus
impl Debug for StreamStatus
Source§impl Default for StreamStatus
impl Default for StreamStatus
Source§impl<'de> Deserialize<'de> for StreamStatus
impl<'de> Deserialize<'de> for StreamStatus
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 Eq for StreamStatus
Source§impl JsonSchema for StreamStatus
Available on crate feature schemars only.
impl JsonSchema for StreamStatus
Available on crate feature
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for StreamStatus
impl PartialEq for StreamStatus
Source§impl Serialize for StreamStatus
impl Serialize for StreamStatus
impl StructuralPartialEq for StreamStatus
Auto Trait Implementations§
impl Freeze for StreamStatus
impl RefUnwindSafe for StreamStatus
impl Send for StreamStatus
impl Sync for StreamStatus
impl Unpin for StreamStatus
impl UnsafeUnpin for StreamStatus
impl UnwindSafe for StreamStatus
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