pub struct ProcessClient { /* private fields */ }Expand description
ctx.process — sandboxed vendor-binary spawn authorization.
Implementations§
Source§impl ProcessClient
impl ProcessClient
Sourcepub async fn spawn(
&self,
basename: &str,
args: Vec<String>,
env: Vec<(String, String)>,
) -> Result<Value, ClientError>
pub async fn spawn( &self, basename: &str, args: Vec<String>, env: Vec<(String, String)>, ) -> Result<Value, ClientError>
Authorize a vendor-binary spawn. The host enforces the manifest allowlist and returns the resolved install dir; the actual exec is the plugin’s to perform so the child inherits the runner’s cgroup slice.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessClient
impl !UnwindSafe for ProcessClient
impl Freeze for ProcessClient
impl Send for ProcessClient
impl Sync for ProcessClient
impl Unpin for ProcessClient
impl UnsafeUnpin for ProcessClient
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