SgRequestExt

Trait SgRequestExt 

Source
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§

Source

fn with_reflect(&mut self)

Source

fn reflect_mut(&mut self) -> &mut Reflect

Source

fn reflect(&self) -> &Reflect

Source

fn extract<M: Extract>(&self) -> M

Source

fn try_extract<M: OptionalExtract>(&self) -> Option<M>

Source

fn inject<I: Inject>(&mut self, i: &I) -> BoxResult<()>

§Errors

If the injection fails.

Source

fn defer_call<F>(&mut self, f: F)
where F: FnOnce(SgRequest) -> SgRequest + Send + 'static,

Source

fn path_iter(&self) -> PathIter<'_>

Source

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.

Implementors§