pub struct AnyFetchFrame {
pub meta: AnyFetchObjectMeta,
draft: DraftVersion,
shape: FetchFrameShape,
}Expand description
One fetch frame, in the form re-encoding it takes.
Produced by AnyFetchObjectReader::read_object_frame and consumed by
AnyFetchObjectWriter::reemit_object. It is one value rather than two
because a frame’s resolved identity and the shape it arrived in are only
meaningful together: the first says what the frame is, the second is the
encoding a writer keeps wherever it still says the same thing, and that is
what reproduces an untouched stream byte for byte.
Fields§
§meta: AnyFetchObjectMetaThe framing, exactly as AnyFetchObjectReader::read_object_meta
reports it.
draft: DraftVersion§shape: FetchFrameShapeImplementations§
Source§impl AnyFetchFrame
impl AnyFetchFrame
Sourcepub fn draft(&self) -> DraftVersion
pub fn draft(&self) -> DraftVersion
The draft whose stream this frame was read off.
A writer refuses a frame from any other draft rather than re-encoding it: the two would agree on the resolved Location and disagree on everything the flags mean.
Sourcefn absolute(draft: DraftVersion, meta: AnyFetchObjectMeta) -> Self
fn absolute(draft: DraftVersion, meta: AnyFetchObjectMeta) -> Self
A frame from one of the drafts that keeps nothing.
Trait Implementations§
Source§impl Clone for AnyFetchFrame
impl Clone for AnyFetchFrame
Source§fn clone(&self) -> AnyFetchFrame
fn clone(&self) -> AnyFetchFrame
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more