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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StaticFile
Source§impl Debug for StaticFile
impl Debug for StaticFile
impl Eq for StaticFile
Source§impl IntoRoute for StaticFile
impl IntoRoute for StaticFile
Source§impl PartialEq for StaticFile
impl PartialEq for StaticFile
Source§fn eq(&self, other: &StaticFile) -> bool
fn eq(&self, other: &StaticFile) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.