pub struct StreamEntry {
pub handle: Option<Box<dyn StreamHandle>>,
pub owner: String,
pub bytes_received: u64,
pub blocks_received: u64,
pub kind: StreamKind,
pub qos: StreamQos,
pub resume_seq: u64,
}Expand description
Metadata and state for an active stream.
The handle is the moq carrier subscription established at open — the
data file’s blocking Tread is the floor push path over it, and bulk
consumers take the same handle whole (StreamRegistry::take_handle). It is
never rebuilt per read.
Fields§
§handle: Option<Box<dyn StreamHandle>>Verified stream handle — does HMAC verification internally.
owner: StringOwner identity (for access control)
bytes_received: u64Bytes received so far
blocks_received: u64Blocks received so far
kind: StreamKindWhich plane this topic belongs to (#819 — events ride the same surface).
qos: StreamQosConsumer-selected QoS (StreamOpt vocabulary; see StreamQos).
resume_seq: u64Resume cursor (#169 seam): the next sequence/offset a resumed reader
wants. 0 = live/from-start. Full at-least-once dedup is #169 follow-up.
Implementations§
Source§impl StreamEntry
impl StreamEntry
Sourcepub fn stream(handle: Option<Box<dyn StreamHandle>>, owner: String) -> Self
pub fn stream(handle: Option<Box<dyn StreamHandle>>, owner: String) -> Self
A point-to-point stream entry at the reliable-in-order floor.
Sourcepub fn event(handle: Option<Box<dyn StreamHandle>>, owner: String) -> Self
pub fn event(handle: Option<Box<dyn StreamHandle>>, owner: String) -> Self
An event entry (#600 group-keyed EventService surfaced on /stream).
Events default to latest-wins — for lifecycle/telemetry the newest
state matters more than every intermediate one (mirrors the EventLive
StreamOpt preset). The handle is the event carrier subscription; see
the events seam note on StreamRegistry::register.
Auto Trait Implementations§
impl Freeze for StreamEntry
impl !RefUnwindSafe for StreamEntry
impl Send for StreamEntry
impl !Sync for StreamEntry
impl Unpin for StreamEntry
impl UnsafeUnpin for StreamEntry
impl !UnwindSafe for StreamEntry
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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