enum Stage {
AwaitingHeader,
Subgroup(AnySubgroupObjectReader),
Fetch {
reader: AnyFetchObjectReader,
writer: AnyFetchObjectWriter,
},
}Expand description
What the framer is currently decoding.
Variants§
AwaitingHeader
Nothing decoded yet; the next bytes are the stream header.
Subgroup(AnySubgroupObjectReader)
Subgroup objects, with the per-stream delta state.
Fetch
Fetch objects, with the state on both sides of the framer: what the stream said, and what has actually been forwarded from it.
The two are the same value until something is elided, and every frame goes through the writer regardless. A frame it never saw would leave it a frame behind, and a survivor re-encoded against a stale predecessor is a renumbered stream rather than a decode error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnsafeUnpin for Stage
impl UnwindSafe for Stage
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