pub struct NamedFile<P> { /* private fields */ }
Expand description
An instance of Responder
for responding a file.
Implementations
sourceimpl<P> NamedFile<P>where
P: AsRef<Path> + Send + 'static,
impl<P> NamedFile<P>where
P: AsRef<Path> + Send + 'static,
sourcepub fn open_with_config(path: P, config: OpenConfig) -> Self
pub fn open_with_config(path: P, config: OpenConfig) -> Self
Open a specified file with the provided configuration.
Trait Implementations
Auto Trait Implementations
impl<P> RefUnwindSafe for NamedFile<P>where
P: RefUnwindSafe,
impl<P> Send for NamedFile<P>where
P: Send,
impl<P> Sync for NamedFile<P>where
P: Sync,
impl<P> Unpin for NamedFile<P>where
P: Unpin,
impl<P> UnwindSafe for NamedFile<P>where
P: UnwindSafe,
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