pub struct StaticFileProvider { /* private fields */ }Expand description
File provider with a static list of file paths.
Implementations§
Source§impl StaticFileProvider
impl StaticFileProvider
pub fn new<S>(paths: impl IntoIterator<Item = S>) -> Self
Trait Implementations§
Source§impl Debug for StaticFileProvider
impl Debug for StaticFileProvider
Auto Trait Implementations§
impl Freeze for StaticFileProvider
impl RefUnwindSafe for StaticFileProvider
impl Send for StaticFileProvider
impl Sync for StaticFileProvider
impl Unpin for StaticFileProvider
impl UnsafeUnpin for StaticFileProvider
impl UnwindSafe for StaticFileProvider
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