Struct iron_archivist::Archivist
[−]
[src]
pub struct Archivist<T: Renderer> { /* fields omitted */ }
A handler that serves static directory indices and files
Archivist
implements iron
's Handler
trait,
making it possible to incorporate Archivist
into any other iron
application.
Methods
impl<T> Archivist<T> where
T: Renderer,
[src]
T: Renderer,
fn summon(config: &Config, renderer: Arc<T>) -> Archivist<T>
[src]
Summons a Archivist
using a certain configuration.
Arguments
config
- The configuration to be usedrenderer
- A shared, thread safe pointer to the renderer.
fn summon_raw(config: &Config, renderer: Arc<T>) -> Archivist<T>
[src]
Summons a Archivist
which serves all files as-is, using a certain configuration.
Arguments
config
- The configuration to be usedrenderer
- A shared, thread safe pointer to the renderer.
Trait Implementations
impl<T> Handler for Archivist<T> where
T: Renderer + Send + Sync + 'static,
[src]
T: Renderer + Send + Sync + 'static,
fn handle(&self, req: &mut Request) -> IronResult<Response>
[src]
Produce a Response
from a Request, with the possibility of error.