Struct spin_sdk::http::IncomingResponse
source · pub struct IncomingResponse { /* private fields */ }
Expand description
The following block defines the incoming-response
and outgoing-response
resource types that correspond to HTTP standard Responses.
The consume
and write
methods may only be called once (and return failure thereafter).
Implementations§
source§impl IncomingResponse
impl IncomingResponse
pub fn status(&self) -> StatusCode
source§impl IncomingResponse
impl IncomingResponse
Trait Implementations§
source§impl Debug for IncomingResponse
impl Debug for IncomingResponse
source§impl TryFromIncomingResponse for IncomingResponse
impl TryFromIncomingResponse for IncomingResponse
§type Error = Infallible
type Error = Infallible
The error if conversion fails
source§fn try_from_incoming_response<'async_trait>(
resp: IncomingResponse
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
fn try_from_incoming_response<'async_trait>(
resp: IncomingResponse
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
Turn the
IncomingResponse
into the typesource§impl WasmResource for IncomingResponse
impl WasmResource for IncomingResponse
Auto Trait Implementations§
impl RefUnwindSafe for IncomingResponse
impl Send for IncomingResponse
impl Sync for IncomingResponse
impl Unpin for IncomingResponse
impl UnwindSafe for IncomingResponse
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