pub struct StreamFrames {
pub frames: Vec<StreamFrame>,
pub closed_at: Option<TimestampMs>,
pub closed_reason: Option<String>,
}Expand description
Result of reading frames from an attempt stream — frames plus terminal signal so consumers can stop polling without a timeout fallback.
Fields§
§frames: Vec<StreamFrame>Entries in the requested range (possibly empty).
closed_at: Option<TimestampMs>Timestamp when the upstream writer closed the stream. None if the
stream is still open (or has never been written).
closed_reason: Option<String>Reason from the closing writer. Current values:
attempt_success, attempt_failure, attempt_cancelled,
attempt_interrupted. None iff the stream is still open.
Implementations§
Source§impl StreamFrames
impl StreamFrames
Sourcepub fn empty_open() -> Self
pub fn empty_open() -> Self
Construct an empty open-stream result (no frames, no terminal markers). Useful for fast-path peek helpers.
Trait Implementations§
Source§impl Clone for StreamFrames
impl Clone for StreamFrames
Source§fn clone(&self) -> StreamFrames
fn clone(&self) -> StreamFrames
Returns a duplicate 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 StreamFrames
impl Debug for StreamFrames
Source§impl<'de> Deserialize<'de> for StreamFrames
impl<'de> Deserialize<'de> for StreamFrames
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 PartialEq for StreamFrames
impl PartialEq for StreamFrames
Source§impl Serialize for StreamFrames
impl Serialize for StreamFrames
impl Eq for StreamFrames
impl StructuralPartialEq for StreamFrames
Auto Trait Implementations§
impl Freeze for StreamFrames
impl RefUnwindSafe for StreamFrames
impl Send for StreamFrames
impl Sync for StreamFrames
impl Unpin for StreamFrames
impl UnsafeUnpin for StreamFrames
impl UnwindSafe for StreamFrames
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