pub struct ExecOptions {
pub program: ProgramRef,
pub root: ProjectRootRef,
pub budget: ProcessBudget,
pub environment: SealedBindings,
pub private_artifacts: Vec<PrivateArtifactRef>,
}Expand description
Portable options used to create a sealed process request.
Fields§
§program: ProgramRefBoot-trusted program identity.
root: ProjectRootRefOpaque working project identity.
budget: ProcessBudgetResource budget.
environment: SealedBindingsExact, empty-by-default child environment.
private_artifacts: Vec<PrivateArtifactRef>Declared private artifacts available to bindings.
Implementations§
Source§impl ExecOptions
impl ExecOptions
Sourcepub fn new(
program: ProgramRef,
root: ProjectRootRef,
timeout_ms: u64,
max_output_bytes: usize,
) -> Self
pub fn new( program: ProgramRef, root: ProjectRootRef, timeout_ms: u64, max_output_bytes: usize, ) -> Self
Creates options with an empty sealed environment.
Sourcepub fn with_stdin(self, stdin: impl Into<Vec<u8>>) -> Self
pub fn with_stdin(self, stdin: impl Into<Vec<u8>>) -> Self
Supplies bounded standard input.
Sourcepub fn with_bindings(self, bindings: SealedBindings) -> Self
pub fn with_bindings(self, bindings: SealedBindings) -> Self
Supplies explicitly validated bindings.
Sourcepub fn with_private_artifacts(self, artifacts: Vec<PrivateArtifactRef>) -> Self
pub fn with_private_artifacts(self, artifacts: Vec<PrivateArtifactRef>) -> Self
Declares private artifacts that the capsule may render.
Trait Implementations§
Source§impl Clone for ExecOptions
impl Clone for ExecOptions
Source§fn clone(&self) -> ExecOptions
fn clone(&self) -> ExecOptions
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 moreSource§impl Debug for ExecOptions
impl Debug for ExecOptions
impl Eq for ExecOptions
Source§impl PartialEq for ExecOptions
impl PartialEq for ExecOptions
impl StructuralPartialEq for ExecOptions
Auto Trait Implementations§
impl Freeze for ExecOptions
impl RefUnwindSafe for ExecOptions
impl Send for ExecOptions
impl Sync for ExecOptions
impl Unpin for ExecOptions
impl UnsafeUnpin for ExecOptions
impl UnwindSafe for ExecOptions
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