pub struct LocalSandbox { /* private fields */ }Expand description
A local-filesystem sandbox: tools run against a real directory on disk.
This is the Rust equivalent of Flue’s local() from
@flue/runtime/node.
Implementations§
Source§impl LocalSandbox
impl LocalSandbox
Trait Implementations§
Source§impl Sandbox for LocalSandbox
impl Sandbox for LocalSandbox
Source§fn env_for<'life0, 'life1, 'async_trait>(
&'life0 self,
_workdir: &'life1 Path,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Arc<dyn SessionEnv>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn env_for<'life0, 'life1, 'async_trait>(
&'life0 self,
_workdir: &'life1 Path,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Arc<dyn SessionEnv>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Build the environment for a session rooted at
workdir.Auto Trait Implementations§
impl Freeze for LocalSandbox
impl RefUnwindSafe for LocalSandbox
impl Send for LocalSandbox
impl Sync for LocalSandbox
impl Unpin for LocalSandbox
impl UnsafeUnpin for LocalSandbox
impl UnwindSafe for LocalSandbox
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