Struct virtual_fs::builder::RootFileSystemBuilder
source · pub struct RootFileSystemBuilder {
default_root_dirs: bool,
create_tmp: bool,
default_dev_files: bool,
add_wasmer_command: bool,
stdin: Option<Box<dyn VirtualFile + Send + Sync>>,
stdout: Option<Box<dyn VirtualFile + Send + Sync>>,
stderr: Option<Box<dyn VirtualFile + Send + Sync>>,
tty: Option<Box<dyn VirtualFile + Send + Sync>>,
}
Fields§
§default_root_dirs: bool
§create_tmp: bool
§default_dev_files: bool
§add_wasmer_command: bool
§stdin: Option<Box<dyn VirtualFile + Send + Sync>>
§stdout: Option<Box<dyn VirtualFile + Send + Sync>>
§stderr: Option<Box<dyn VirtualFile + Send + Sync>>
§tty: Option<Box<dyn VirtualFile + Send + Sync>>
Implementations§
source§impl RootFileSystemBuilder
impl RootFileSystemBuilder
pub fn new() -> Self
pub fn with_stdin(self, file: Box<dyn VirtualFile + Send + Sync>) -> Self
pub fn with_stdout(self, file: Box<dyn VirtualFile + Send + Sync>) -> Self
pub fn with_stderr(self, file: Box<dyn VirtualFile + Send + Sync>) -> Self
pub fn with_tty(self, file: Box<dyn VirtualFile + Send + Sync>) -> Self
pub fn default_root_dirs(self, val: bool) -> Self
pub fn with_tmp(self, val: bool) -> Self
pub fn build(self) -> TmpFileSystem
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RootFileSystemBuilder
impl !RefUnwindSafe for RootFileSystemBuilder
impl Send for RootFileSystemBuilder
impl Sync for RootFileSystemBuilder
impl Unpin for RootFileSystemBuilder
impl !UnwindSafe for RootFileSystemBuilder
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