pub trait DrawResources {
    // Required method
    fn resource<R: Resource>(&mut self, path: &str);
}
Expand description

This trait adds the resource method to gotham’s routing. It allows you to register any RESTful Resource with a path.

Required Methods§

source

fn resource<R: Resource>(&mut self, path: &str)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, C, P> DrawResources for RouterBuilder<'a, C, P>
where C: PipelineHandleChain<P> + Copy + Send + Sync + 'static, P: RefUnwindSafe + Send + Sync + 'static,

source§

fn resource<R: Resource>(&mut self, path: &str)

source§

impl<'a, C, P> DrawResources for ScopeBuilder<'a, C, P>
where C: PipelineHandleChain<P> + Copy + Send + Sync + 'static, P: RefUnwindSafe + Send + Sync + 'static,

source§

fn resource<R: Resource>(&mut self, path: &str)

Implementors§