pub struct LocalExecutionEnvironment { /* private fields */ }Expand description
Local, in-process environment implementation.
Implementations§
Trait Implementations§
Source§impl AgentExecutionEnvironment for LocalExecutionEnvironment
impl AgentExecutionEnvironment for LocalExecutionEnvironment
fn cwd(&self) -> Option<&EnvironmentPath>
fn create_dir_all<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 EnvironmentPath,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_file<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
path: &'life1 EnvironmentPath,
content: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn read_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 EnvironmentPath,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 EnvironmentPath,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_temp_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<EnvironmentPath>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exec<'life0, 'life1, 'async_trait>(
&'life0 self,
request: ExecRequest,
sink: &'life1 mut dyn ExecEventSink,
) -> Pin<Box<dyn Future<Output = Result<ExecOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn spawn<'life0, 'async_trait>(
&'life0 self,
request: ExecRequest,
sink: Option<Box<dyn ExecEventSink>>,
) -> Pin<Box<dyn Future<Output = Result<SpawnOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl Clone for LocalExecutionEnvironment
impl Clone for LocalExecutionEnvironment
Source§fn clone(&self) -> LocalExecutionEnvironment
fn clone(&self) -> LocalExecutionEnvironment
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 Freeze for LocalExecutionEnvironment
impl RefUnwindSafe for LocalExecutionEnvironment
impl Send for LocalExecutionEnvironment
impl Sync for LocalExecutionEnvironment
impl Unpin for LocalExecutionEnvironment
impl UnsafeUnpin for LocalExecutionEnvironment
impl UnwindSafe for LocalExecutionEnvironment
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