Struct spin_sdk::http::OutgoingRequest
source · pub struct OutgoingRequest { /* private fields */ }
Implementations§
source§impl OutgoingRequest
impl OutgoingRequest
sourcepub fn write(&self) -> Result<OutgoingBody, ()>
pub fn write(&self) -> Result<OutgoingBody, ()>
Will return the outgoing-body child at most once.
If called more than once, subsequent calls return an error.
Trait Implementations§
source§impl Debug for OutgoingRequest
impl Debug for OutgoingRequest
source§impl TryIntoOutgoingRequest for OutgoingRequest
impl TryIntoOutgoingRequest for OutgoingRequest
§type Error = Infallible
type Error = Infallible
The error if the conversion fails
source§fn try_into_outgoing_request(
self
) -> Result<(OutgoingRequest, Option<Vec<u8>>), Self::Error>
fn try_into_outgoing_request( self ) -> Result<(OutgoingRequest, Option<Vec<u8>>), Self::Error>
Turn the type into an
OutgoingRequest
Read moresource§impl WasmResource for OutgoingRequest
impl WasmResource for OutgoingRequest
Auto Trait Implementations§
impl RefUnwindSafe for OutgoingRequest
impl Send for OutgoingRequest
impl Sync for OutgoingRequest
impl Unpin for OutgoingRequest
impl UnwindSafe for OutgoingRequest
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