pub struct AnyFetchFrame {
pub meta: AnyFetchObjectMeta,
/* private fields */
}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.
Implementations§
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.
Trait Implementations§
Source§impl Clone for AnyFetchFrame
impl Clone for AnyFetchFrame
Source§fn clone(&self) -> AnyFetchFrame
fn clone(&self) -> AnyFetchFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnyFetchFrame
impl RefUnwindSafe for AnyFetchFrame
impl Send for AnyFetchFrame
impl Sync for AnyFetchFrame
impl Unpin for AnyFetchFrame
impl UnsafeUnpin for AnyFetchFrame
impl UnwindSafe for AnyFetchFrame
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