pub trait DrawResourceRoutes {
    // Required method
    fn endpoint<E: 'static + Endpoint>(&mut self);
}
Expand description

This trait allows to draw routes within an resource. Use this only inside the Resource::setup method.

Required Methods§

source

fn endpoint<E: 'static + Endpoint>(&mut self)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, C, P> DrawResourceRoutes for (&mut RouterBuilder<'a, C, P>, &str)
where C: PipelineHandleChain<P> + Copy + Send + Sync + 'static, P: RefUnwindSafe + Send + Sync + 'static,

source§

fn endpoint<E: Endpoint + 'static>(&mut self)

source§

impl<'a, C, P> DrawResourceRoutes for (&mut ScopeBuilder<'a, C, P>, &str)
where C: PipelineHandleChain<P> + Copy + Send + Sync + 'static, P: RefUnwindSafe + Send + Sync + 'static,

source§

fn endpoint<E: Endpoint + 'static>(&mut self)

Implementors§