pub struct Emitted<'p> { /* private fields */ }Expand description
What came out of a pipeline, and how it is framed.
bytes is the whole emission and units is
the pieces the segment asked for it to be delivered in. Unless a stage
called Ctx::boundary there is exactly one unit and the two say the same
thing, so a sink with no framing of its own (a byte stream, a file) can
write bytes in one call and ignore units entirely.
Where units are observable they matter: on a datagram sink one unit is one message, and across a detached boundary one unit is one parcel and so one call to the segment below.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'p> Freeze for Emitted<'p>
impl<'p> RefUnwindSafe for Emitted<'p>
impl<'p> Send for Emitted<'p>
impl<'p> Sync for Emitted<'p>
impl<'p> Unpin for Emitted<'p>
impl<'p> UnsafeUnpin for Emitted<'p>
impl<'p> UnwindSafe for Emitted<'p>
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