pub struct RemoteWorkspace {
pub session: Arc<dyn RemoteRunnerSession>,
pub root: PathBuf,
pub read_roots: Vec<PathBuf>,
}Expand description
Remote workspace handle carried on the tool execution context for
runner-bound threads. Tools route file and shell operations through
session with paths scoped under root (a path on the runner, not the
local filesystem).
Fields§
§session: Arc<dyn RemoteRunnerSession>§root: PathBuf§read_roots: Vec<PathBuf>Extra absolute runner paths reads may resolve under, beyond root.
Writes and the working directory stay confined to root.
Trait Implementations§
Source§impl Clone for RemoteWorkspace
impl Clone for RemoteWorkspace
Source§fn clone(&self) -> RemoteWorkspace
fn clone(&self) -> RemoteWorkspace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RemoteWorkspace
impl !UnwindSafe for RemoteWorkspace
impl Freeze for RemoteWorkspace
impl Send for RemoteWorkspace
impl Sync for RemoteWorkspace
impl Unpin for RemoteWorkspace
impl UnsafeUnpin for RemoteWorkspace
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