Enum rocket_file_cache::ResponderFile
[−]
[src]
pub enum ResponderFile {
Cached(CachedFile),
FileSystem(NamedFile),
}Wrapper around types that represent files and implement Responder<'static>.
Variants
Cached(CachedFile)FileSystem(NamedFile)
Trait Implementations
impl Debug for ResponderFile[src]
impl From<CachedFile> for ResponderFile[src]
fn from(cached_file: CachedFile) -> Self[src]
Performs the conversion.
impl From<NamedFile> for ResponderFile[src]
impl Responder<'static> for ResponderFile[src]
fn respond_to(self, request: &Request) -> Result<Response<'static>, Status>[src]
Returns Ok if a Response could be generated successfully. Otherwise, returns an Err with a failing Status. Read more