pub struct ResponseOutparam(/* private fields */);
Expand description
The out param for setting an OutgoingResponse
Implementations§
Source§impl ResponseOutparam
impl ResponseOutparam
Sourcepub fn set(self, response: OutgoingResponse)
pub fn set(self, response: OutgoingResponse)
Set the outgoing response
Sourcepub async fn set_with_body(
self,
response: OutgoingResponse,
buffer: Vec<u8>,
) -> Result<(), StreamError>
pub async fn set_with_body( self, response: OutgoingResponse, buffer: Vec<u8>, ) -> Result<(), StreamError>
Set with the outgoing response and the supplied buffer
Will panic if response body has already been taken
Sourcepub fn into_inner(self) -> ResponseOutparam
pub fn into_inner(self) -> ResponseOutparam
Return the inner, wit-bindgen
-generated instance
Auto Trait Implementations§
impl Freeze for ResponseOutparam
impl RefUnwindSafe for ResponseOutparam
impl Send for ResponseOutparam
impl Sync for ResponseOutparam
impl Unpin for ResponseOutparam
impl UnwindSafe for ResponseOutparam
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