pub struct LocalExecutor { /* private fields */ }Expand description
Executes commands directly against an in-process FileSystem backend.
Implementations§
Source§impl LocalExecutor
impl LocalExecutor
Sourcepub fn new(fs: Arc<dyn FileSystem>) -> Self
pub fn new(fs: Arc<dyn FileSystem>) -> Self
Wraps a backend for local, in-process execution.
Trait Implementations§
Source§impl Executor for LocalExecutor
impl Executor for LocalExecutor
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 RequestContext,
command: Command,
) -> Pin<Box<dyn Future<Output = FsResult<CommandOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 RequestContext,
command: Command,
) -> Pin<Box<dyn Future<Output = FsResult<CommandOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Runs
command under ctx and returns its typed result.Auto Trait Implementations§
impl !RefUnwindSafe for LocalExecutor
impl !UnwindSafe for LocalExecutor
impl Freeze for LocalExecutor
impl Send for LocalExecutor
impl Sync for LocalExecutor
impl Unpin for LocalExecutor
impl UnsafeUnpin for LocalExecutor
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