Type Alias wasmcloud_runtime::capability::http::outgoing_handler::FutureIncomingResponse
source · pub type FutureIncomingResponse = HostFutureIncomingResponse;
Aliased Type§
enum FutureIncomingResponse {
Pending(AbortOnDropJoinHandle<Result<Result<IncomingResponse, ErrorCode>, Error>>),
Ready(Result<Result<IncomingResponse, ErrorCode>, Error>),
Consumed,
}
Variants§
Pending(AbortOnDropJoinHandle<Result<Result<IncomingResponse, ErrorCode>, Error>>)
A pending response
Ready(Result<Result<IncomingResponse, ErrorCode>, Error>)
The response is ready.
An outer error will trap while the inner error gets returned to the guest.
Consumed
The response has been consumed.