pub struct Emission { /* private fields */ }Expand description
What one call to a stage produced: the bytes it emitted, how they are framed, and what it asked the host to do about its own schedule.
One struct rather than four borrows because they are written together and read together, and because a stage’s whole answer is exactly these four things. The host keeps one per buffer and resets it between calls, so a steady stream allocates nothing here after the first few chunks.
Implementations§
Source§impl Emission
impl Emission
pub fn new() -> Self
Sourcepub fn rearm_requested(&self) -> bool
pub fn rearm_requested(&self) -> bool
Whether the stage asked for its schedule to be restarted. See
Ctx::rearm.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Emission
impl RefUnwindSafe for Emission
impl Send for Emission
impl Sync for Emission
impl Unpin for Emission
impl UnsafeUnpin for Emission
impl UnwindSafe for Emission
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