pub struct StreamFrames {
pub frames: Vec<StreamFrame>,
pub closed_at: Option<TimestampMs>,
pub closed_reason: Option<String>,
}Expand description
Result of read_stream / tail_stream — frames plus the terminal
signal so polling consumers can exit cleanly.
Re-export of ff_core::contracts::StreamFrames for SDK ergonomics.
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() -> StreamFrames
pub fn empty_open() -> StreamFrames
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<StreamFrames, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamFrames, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more