pub enum Event<'d, E> {
Head,
Chunk(Chunk<'d>),
Failed(E),
End,
}Variants§
Head
The initial response is held for emission. A polled task yields this exactly once, before body events; it cannot publish informational heads or trailers.
Chunk(Chunk<'d>)
Failed(E)
End
The source ended and its runtime task slot and quota were released before handoff.
Auto Trait Implementations§
impl<'d, E> !RefUnwindSafe for Event<'d, E>
impl<'d, E> !Send for Event<'d, E>
impl<'d, E> !Sync for Event<'d, E>
impl<'d, E> !UnwindSafe for Event<'d, E>
impl<'d, E> Forget for Event<'d, E>
impl<'d, E> Freeze for Event<'d, E>where
E: Freeze,
impl<'d, E> Unpin for Event<'d, E>where
E: Unpin,
impl<'d, E> UnsafeUnpin for Event<'d, E>where
E: UnsafeUnpin,
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