pub struct Draft16FetchStream {
stream: FramedRecvStream,
reader: FetchObjectReader,
}Expand description
Draft-16’s fetch stream, carried with the resolver its objects need.
The one variant of AnyFetchReader that is not a bare stream, and the
reason is a gap one draft wide. All but one of the per-draft
FramedRecvStreams resolve a fetch object’s elided fields themselves —
drafts 07 through 14 have nothing to resolve, and 15, 17, 18, 19 and 20 each
hold a FetchObjectReader on the stream. Draft-16’s does not, though
moqtap_codec::draft16::data_stream::FetchObjectReader exists and does
exactly the job.
So the state lives here. It has to live somewhere per stream: a draft-16 object may leave out its Group ID, its Subgroup ID, its Object ID and its Priority, and Table 5 gives each absent field a meaning drawn from the object before it. A reader without the object before it does not get a worse answer, it gets no answer at all.
Fields§
§stream: FramedRecvStream§reader: FetchObjectReaderImplementations§
Source§impl Draft16FetchStream
impl Draft16FetchStream
Sourcepub fn stream_id(&self) -> u64
pub fn stream_id(&self) -> u64
Which stream this fetch arrived on, on the terms
AnySubgroupWriter::stream_id describes.