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.Auto Trait Implementations§
impl Freeze for FileHandler
impl RefUnwindSafe for FileHandler
impl Send for FileHandler
impl Sync for FileHandler
impl Unpin for FileHandler
impl UnwindSafe for FileHandler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more