pub struct StaticFile { /* private fields */ }
Available on crate feature
fs
only.Expand description
Static get handler which servers/returns a file.
§Example
use fire::fs::StaticFile;
const INDEX: StaticFile = StaticFile::new("/", "./www/index.html");
Implementations§
Source§impl StaticFile
impl StaticFile
Trait Implementations§
Source§impl Clone for StaticFile
impl Clone for StaticFile
Source§fn clone(&self) -> StaticFile
fn clone(&self) -> StaticFile
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 Debug for StaticFile
impl Debug for StaticFile
Source§impl IntoRoute for StaticFile
impl IntoRoute for StaticFile
Source§impl PartialEq for StaticFile
impl PartialEq for StaticFile
impl Copy for StaticFile
impl Eq for StaticFile
impl StructuralPartialEq for StaticFile
Auto Trait Implementations§
impl Freeze for StaticFile
impl RefUnwindSafe for StaticFile
impl Send for StaticFile
impl Sync for StaticFile
impl Unpin for StaticFile
impl UnwindSafe for StaticFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.