pub struct Inmem {
pub source_path: PathBuf,
pub file_store: Mutex<BTreeMap<PathBuf, String>>,
pub template_engine: Template,
}Fields§
§source_path: PathBuf§file_store: Mutex<BTreeMap<PathBuf, String>>§template_engine: TemplateImplementations§
Trait Implementations§
Source§impl Executer for Inmem
impl Executer for Inmem
Source§fn copy_file(&self, file_path: &Path) -> Result<PathBuf>
fn copy_file(&self, file_path: &Path) -> Result<PathBuf>
Copies a single file from the specified path. Read more
Source§fn create_file(&self, path: &Path, content: String) -> Result<PathBuf>
fn create_file(&self, path: &Path, content: String) -> Result<PathBuf>
Copies a single file from the specified path. Read more
Source§fn copy_dir(&self, directory_path: &Path) -> Result<()>
fn copy_dir(&self, directory_path: &Path) -> Result<()>
Copies an entire directory from the specified path. Read more
Auto Trait Implementations§
impl !Freeze for Inmem
impl RefUnwindSafe for Inmem
impl Send for Inmem
impl Sync for Inmem
impl Unpin for Inmem
impl UnsafeUnpin for Inmem
impl UnwindSafe for Inmem
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