Struct wasmtime_wasi_http::body::HostIncomingBodyBuilder
source · pub struct HostIncomingBodyBuilder {
pub body: HyperIncomingBody,
pub between_bytes_timeout: Duration,
}
Expand description
Holds onto the things needed to construct a HostIncomingBody
until we are ready to build
one. The HostIncomingBody spawns a task that starts consuming the incoming body, and we don’t
want to do that unless the user asks to consume the body.
Fields§
§body: HyperIncomingBody
§between_bytes_timeout: Duration
Implementations§
source§impl HostIncomingBodyBuilder
impl HostIncomingBodyBuilder
sourcepub fn build(self) -> HostIncomingBody
pub fn build(self) -> HostIncomingBody
Consume the state held in the HostIncomingBodyBuilder
to spawn a task that will drive the
streaming body to completion. Data segments will be communicated out over the
HostIncomingBodyStream
, and a HostFutureTrailers
gives a way to block on/retrieve
the trailers.
Auto Trait Implementations§
impl !RefUnwindSafe for HostIncomingBodyBuilder
impl Send for HostIncomingBodyBuilder
impl Sync for HostIncomingBodyBuilder
impl Unpin for HostIncomingBodyBuilder
impl !UnwindSafe for HostIncomingBodyBuilder
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
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike,
Query the “status” flags for the
self
file descriptor.