pub struct StaticFile<T: AsRef<Path>>(pub T);Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: AsRef<Path> + Send + Sync> HttpResponseModifier for StaticFile<T>
impl<T: AsRef<Path> + Send + Sync> HttpResponseModifier for StaticFile<T>
fn modify<'a>( &'a mut self, res: &'a mut HttpResponse, ) -> HttpResponseModifierFuture<'a>
Auto Trait Implementations§
impl<T> Freeze for StaticFile<T>where
T: Freeze,
impl<T> RefUnwindSafe for StaticFile<T>where
T: RefUnwindSafe,
impl<T> Send for StaticFile<T>where
T: Send,
impl<T> Sync for StaticFile<T>where
T: Sync,
impl<T> Unpin for StaticFile<T>where
T: Unpin,
impl<T> UnsafeUnpin for StaticFile<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for StaticFile<T>where
T: UnwindSafe,
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