enum Payload {
Write(Bytes),
Elide,
Absent,
}Expand description
The bytes a content action produced, or their absence.
Variants§
Write(Bytes)
Write exactly these bytes.
Elide
Write nothing. Still takes an ordering slot when the queue is busy: the drop was decided at a point in the stream, and letting it out of band would write a later unit before an earlier one.
Absent
There is no unit. Site::StreamEnd only.
Distinct from Self::Elide because a stream ending has no place in
the deque at all — pushing an empty ordering slot behind a delayed
object would owe a ledger entry for a unit that does not exist.
Trait Implementations§
impl Eq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl !Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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