Struct hyper_fs::StaticFs
[−]
[src]
pub struct StaticFs<C> { /* fields omitted */ }
Static File System
Methods
impl<C> StaticFs<C> where
C: AsRef<Config> + Clone + Send,
[src]
C: AsRef<Config> + Clone + Send,
fn new<U, P>(handle: Handle, pool: CpuPool, url: U, path: P, config: C) -> Self where
U: Into<String>,
P: Into<PathBuf>,
[src]
U: Into<String>,
P: Into<PathBuf>,
fn config(&self) -> &Config
[src]
fn headers_file_mut(&mut self) -> &mut Option<Headers>
[src]
fn headers_index_mut(&mut self) -> &mut Option<Headers>
[src]
Trait Implementations
impl<C> Service for StaticFs<C> where
C: AsRef<Config> + Clone + Send + 'static,
[src]
C: AsRef<Config> + Clone + Send + 'static,
type Request = Request
Requests handled by the service.
type Response = Response
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = FutureObject
The future response value.
fn call(&self, req: Request) -> Self::Future
[src]
Process the request and return the response asynchronously.