pub struct CgiResponseBody<R, G = ()> { /* private fields */ }Expand description
Streaming body for a CGI response: yields the leftover bytes
(from the post-header read) first, then reads the rest from the
child’s stdout to EOF. A total_deadline caps the total
streaming time; mid-body the next poll_frame past the deadline
returns an io::Error.
G is a generic drop guard that the body owns for its
lifetime — typically a permit, an Arc, or a cancellation
guard the host wants to keep alive while bytes are still
flowing. Use () when you don’t need one.
Implementations§
Trait Implementations§
Source§impl<R, G> Body for CgiResponseBody<R, G>
impl<R, G> Body for CgiResponseBody<R, G>
Auto Trait Implementations§
impl<R, G = ()> !Freeze for CgiResponseBody<R, G>
impl<R, G> RefUnwindSafe for CgiResponseBody<R, G>where
R: RefUnwindSafe,
G: RefUnwindSafe,
impl<R, G> Send for CgiResponseBody<R, G>
impl<R, G> Sync for CgiResponseBody<R, G>
impl<R, G> Unpin for CgiResponseBody<R, G>
impl<R, G> UnsafeUnpin for CgiResponseBody<R, G>where
R: UnsafeUnpin,
G: UnsafeUnpin,
impl<R, G> UnwindSafe for CgiResponseBody<R, G>where
R: UnwindSafe,
G: UnwindSafe,
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