pub struct FileLoader;Expand description
§File Loader
Loads a html file from a templates folder. Its sole purpose it to load files asynchrynously
Implementations§
Source§impl FileLoader
impl FileLoader
Sourcepub async fn load_template(path: &str) -> String
pub async fn load_template(path: &str) -> String
§Load Template
Loads a template from a given path, returning the loaded file as a String
Auto Trait Implementations§
impl Freeze for FileLoader
impl RefUnwindSafe for FileLoader
impl Send for FileLoader
impl Sync for FileLoader
impl Unpin for FileLoader
impl UnwindSafe for FileLoader
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