pub(crate) enum Item {
Write(Bytes),
Elided,
Terminal(Terminal),
}Expand description
What a queued unit does when it is written.
Variants§
Write(Bytes)
Write these bytes. Already whatever the action made of them —
verbatim for Pass, spliced for ReplacePayload, substituted for
Replace.
Elided
Write nothing.
An elided unit still takes a slot when the queue is non-empty: it was decided at a point in the stream, and dropping it out of band would let a later unit be written before an earlier one is.
Terminal(Terminal)
End the stream. See Terminal.
Trait Implementations§
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl !Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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