Struct spin_sdk::http::OutgoingBody
source · pub struct OutgoingBody { /* private fields */ }
Implementations§
source§impl OutgoingBody
impl OutgoingBody
source§impl OutgoingBody
impl OutgoingBody
sourcepub fn finish(this: OutgoingBody, trailers: Option<Trailers>)
pub fn finish(this: OutgoingBody, trailers: Option<Trailers>)
Finalize an outgoing body, optionally providing trailers. This must be
called to signal that the response is complete. If the outgoing-body
is
dropped without calling outgoing-body-finalize
, the implementation
should treat the body as corrupted.
Trait Implementations§
source§impl Debug for OutgoingBody
impl Debug for OutgoingBody
source§impl WasmResource for OutgoingBody
impl WasmResource for OutgoingBody
Auto Trait Implementations§
impl RefUnwindSafe for OutgoingBody
impl Send for OutgoingBody
impl Sync for OutgoingBody
impl Unpin for OutgoingBody
impl UnwindSafe for OutgoingBody
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