pub enum ParsedItem {
Frame(ParsedFrame),
Refused(RefusedFrame),
}Expand description
One thing the parser framed, in wire order.
Order is the reason this is one sequence rather than two collections. A chunk holding a good frame, a refused one and a second good one has to be forwarded in that order; a caller handed the good frames and the refused bytes separately would write them in whichever order it chose, which for a control stream is a reordering the peer decodes as a different session.
Variants§
Trait Implementations§
Source§impl Clone for ParsedItem
impl Clone for ParsedItem
Source§fn clone(&self) -> ParsedItem
fn clone(&self) -> ParsedItem
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 ParsedItem
impl RefUnwindSafe for ParsedItem
impl Send for ParsedItem
impl Sync for ParsedItem
impl Unpin for ParsedItem
impl UnsafeUnpin for ParsedItem
impl UnwindSafe for ParsedItem
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