Struct gotham::handler::FileHandler
source · pub struct FileHandler { /* private fields */ }
Expand description
Represents a handler for a single file.
Implementations§
source§impl FileHandler
impl FileHandler
sourcepub fn new<P>(path: P) -> FileHandlerwhere
FileOptions: From<P>,
pub fn new<P>(path: P) -> FileHandlerwhere
FileOptions: From<P>,
Create a new FileHandler
for the given path.
Trait Implementations§
source§impl Clone for FileHandler
impl Clone for FileHandler
source§fn clone(&self) -> FileHandler
fn clone(&self) -> FileHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Handler for FileHandler
impl Handler for FileHandler
source§impl NewHandler for FileHandler
impl NewHandler for FileHandler
§type Instance = FileHandler
type Instance = FileHandler
The type of
Handler
created by the NewHandler
.source§fn new_handler(&self) -> Result<Self::Instance>
fn new_handler(&self) -> Result<Self::Instance>
Create and return a new
Handler
value.