pub trait SgRequestExt {
// Required methods
fn with_reflect(&mut self);
fn reflect_mut(&mut self) -> &mut Reflect;
fn reflect(&self) -> &Reflect;
fn extract<M: Extract>(&self) -> M;
fn try_extract<M: OptionalExtract>(&self) -> Option<M>;
fn inject<I: Inject>(&mut self, i: &I) -> BoxResult<()>;
fn defer_call<F>(&mut self, f: F)
where F: FnOnce(SgRequest) -> SgRequest + Send + 'static;
fn path_iter(&self) -> PathIter<'_> ⓘ;
fn query_kv_iter(&self) -> Option<QueryKvIter<'_>>;
}
Expand description
Provides extension methods for Request
.
Required Methods§
fn with_reflect(&mut self)
fn reflect_mut(&mut self) -> &mut Reflect
fn reflect(&self) -> &Reflect
fn extract<M: Extract>(&self) -> M
fn try_extract<M: OptionalExtract>(&self) -> Option<M>
fn defer_call<F>(&mut self, f: F)
fn path_iter(&self) -> PathIter<'_> ⓘ
fn query_kv_iter(&self) -> Option<QueryKvIter<'_>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.