pub struct MemoryVfsBackend { /* private fields */ }Expand description
Mode S: Vfs in memory (Rc<RefCell<Vfs>> matches REPL sharing).
Implementations§
Trait Implementations§
Source§impl WorkspaceBackend for MemoryVfsBackend
impl WorkspaceBackend for MemoryVfsBackend
fn logical_cwd(&self) -> String
Source§fn set_logical_cwd(&mut self, path: &str) -> Result<(), WorkspaceBackendError>
fn set_logical_cwd(&mut self, path: &str) -> Result<(), WorkspaceBackendError>
Errors Read more
Source§fn read_file(&mut self, path: &str) -> Result<Vec<u8>, WorkspaceBackendError>
fn read_file(&mut self, path: &str) -> Result<Vec<u8>, WorkspaceBackendError>
Errors Read more
Source§fn write_file(
&mut self,
path: &str,
data: &[u8],
) -> Result<(), WorkspaceBackendError>
fn write_file( &mut self, path: &str, data: &[u8], ) -> Result<(), WorkspaceBackendError>
Errors Read more
Source§fn list_dir(&mut self, path: &str) -> Result<Vec<String>, WorkspaceBackendError>
fn list_dir(&mut self, path: &str) -> Result<Vec<String>, WorkspaceBackendError>
Errors Read more
Source§fn try_resolve_guest_path(
&self,
_logical_path: &str,
) -> Result<String, WorkspaceBackendError>
fn try_resolve_guest_path( &self, _logical_path: &str, ) -> Result<String, WorkspaceBackendError>
Mode P: logical path → guest absolute path. Mode S:
WorkspaceBackendError::ModeSOnly. Read moreSource§fn run_rust_tool(
&mut self,
vm_session: &mut SessionHolder,
program: &str,
args: &[String],
) -> Result<ExitStatus, WorkspaceBackendError>
fn run_rust_tool( &mut self, vm_session: &mut SessionHolder, program: &str, args: &[String], ) -> Result<ExitStatus, WorkspaceBackendError>
Run
rustup / cargo (Mode S: sync VFS↔host/VM). Mode P skeleton: WorkspaceBackendError::Unsupported. Read moreAuto Trait Implementations§
impl Freeze for MemoryVfsBackend
impl !RefUnwindSafe for MemoryVfsBackend
impl !Send for MemoryVfsBackend
impl !Sync for MemoryVfsBackend
impl Unpin for MemoryVfsBackend
impl UnsafeUnpin for MemoryVfsBackend
impl !UnwindSafe for MemoryVfsBackend
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