pub type SgRequest = Request<SgBody>;
Expand description
Alias for a request with a boxed body.
Aliased Type§
pub struct SgRequest { /* private fields */ }
Trait Implementations§
Source§impl SgRequestExt for SgRequest
impl SgRequestExt for SgRequest
Source§fn reflect_mut(&mut self) -> &mut Reflect
fn reflect_mut(&mut self) -> &mut Reflect
Get a mutable reference to the reflect extension.
§Panics
Panics if the reflect extension is not found. If you are using a request created by spacegate, this should never happen.
Source§fn reflect(&self) -> &Reflect
fn reflect(&self) -> &Reflect
Get a reference to the reflect extension.
§Panics
Panics if the reflect extension is not found. If you are using a request created by spacegate, this should never happen.
Source§fn with_reflect(&mut self)
fn with_reflect(&mut self)
Add a reflect extension to the request if it does not exist.
Source§fn try_extract<M: OptionalExtract>(&self) -> Option<M>
fn try_extract<M: OptionalExtract>(&self) -> Option<M>
Try to extract a value from the request.
Source§fn defer_call<F>(&mut self, f: F)
fn defer_call<F>(&mut self, f: F)
Defer a call to the request. The call will be executed before the request has been sent to the backend.