pub struct CommandHostExec { /* private fields */ }Expand description
Process-backed host command driver with explicit per-host read roots.
Implementations§
Source§impl CommandHostExec
impl CommandHostExec
Sourcepub fn new(executor: Arc<dyn CommandExecutor>) -> Self
pub fn new(executor: Arc<dyn CommandExecutor>) -> Self
Creates a driver with no admitted hosts.
Sourcepub fn with_policy(self, host: HostId, policy: HostExecPolicy) -> Self
pub fn with_policy(self, host: HostId, policy: HostExecPolicy) -> Self
Adds or replaces the execution policy for one host identity.
Trait Implementations§
Source§impl HostExecMutator for CommandHostExec
impl HostExecMutator for CommandHostExec
Source§fn exec_host<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
request: &'life2 HostExecRequest,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = MutationResult<HostExecReceipt>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn exec_host<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
request: &'life2 HostExecRequest,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = MutationResult<HostExecReceipt>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Executes one allowlisted command through a typed launcher.
Auto Trait Implementations§
impl Freeze for CommandHostExec
impl !RefUnwindSafe for CommandHostExec
impl Send for CommandHostExec
impl Sync for CommandHostExec
impl Unpin for CommandHostExec
impl UnsafeUnpin for CommandHostExec
impl !UnwindSafe for CommandHostExec
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