Struct gotham::handler::FileHandler
source · [−]pub struct FileHandler { /* private fields */ }
Expand description
Represents a handler for a single file.
Implementations
sourceimpl 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
sourceimpl Clone for FileHandler
impl Clone for FileHandler
sourcefn clone(&self) -> FileHandler
fn clone(&self) -> FileHandler
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Handler for FileHandler
impl Handler for FileHandler
sourceimpl NewHandler for FileHandler
impl NewHandler for FileHandler
type Instance = FileHandler
type Instance = FileHandler
The type of
Handler
created by the NewHandler
.sourcefn new_handler(&self) -> Result<Self::Instance>
fn new_handler(&self) -> Result<Self::Instance>
Create and return a new
Handler
value.Auto Trait Implementations
impl RefUnwindSafe for FileHandler
impl Send for FileHandler
impl Sync for FileHandler
impl Unpin for FileHandler
impl UnwindSafe for FileHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more