#[repr(u32)]pub enum Emit {
Pending = 0,
Passthrough = 1,
Buffered = 2,
}Expand description
What a stage decided to do with the chunk it was given.
Variants§
Pending = 0
Nothing emitted; the chunk stops here.
Passthrough = 1
Input forwarded verbatim. The host reuses the input slice, copying nothing.
Buffered = 2
The stage wrote its own bytes into the output buffer, and any framing it declared along with them.
Implementations§
Trait Implementations§
impl Copy for Emit
impl Eq for Emit
impl StructuralPartialEq for Emit
Auto Trait Implementations§
impl Freeze for Emit
impl RefUnwindSafe for Emit
impl Send for Emit
impl Sync for Emit
impl Unpin for Emit
impl UnsafeUnpin for Emit
impl UnwindSafe for Emit
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