pub struct StreamStep {
pub bytes: Vec<u8>,
pub boundary: Option<BoundaryDescriptor>,
pub done: bool,
}Expand description
Bytes and continuation state returned by one owned semantic step.
The bytes are one semantic write segment ending on a transport flush
boundary: the shell prefix, exactly one committed occurrence, the parent
bytes between two occurrences, or the tail plus terminal. A host writes them
with a single write + flush.
Fields§
§bytes: Vec<u8>Complete bytes produced by this call.
boundary: Option<BoundaryDescriptor>Next runtime occurrence waiting for resume.
done: boolTrue after terminal emission.
Trait Implementations§
Source§impl Clone for StreamStep
impl Clone for StreamStep
Source§impl Debug for StreamStep
impl Debug for StreamStep
impl Eq for StreamStep
Source§impl PartialEq for StreamStep
impl PartialEq for StreamStep
impl StructuralPartialEq for StreamStep
Auto Trait Implementations§
impl Freeze for StreamStep
impl RefUnwindSafe for StreamStep
impl Send for StreamStep
impl Sync for StreamStep
impl Unpin for StreamStep
impl UnsafeUnpin for StreamStep
impl UnwindSafe for StreamStep
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