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]

[src]

Summons a Archivist using a certain configuration.

Arguments

  • config - The configuration to be used
  • renderer - A shared, thread safe pointer to the renderer.

[src]

Summons a Archivist which serves all files as-is, using a certain configuration.

Arguments

  • config - The configuration to be used
  • renderer - A shared, thread safe pointer to the renderer.

Trait Implementations

impl<T> Handler for Archivist<T> where
    T: Renderer + Send + Sync + 'static, 
[src]

[src]

Produce a Response from a Request, with the possibility of error.