pub struct CommandSpec { /* private fields */ }Expand description
Immutable allowlist entry pinning every local checker execution input.
Implementations§
Source§impl CommandSpec
impl CommandSpec
Sourcepub fn new(
program: ProgramRef,
root: ProjectRootRef,
invocation: CommandInvocation,
environment: SealedBindings,
resources: Vec<CommandResource>,
budget: ProcessBudget,
outputs: OutputContract,
cleanup: CleanupContract,
network: NetworkAccess,
route: CommandRoute,
replay: CommandReplayPolicy,
) -> Result<Self>
pub fn new( program: ProgramRef, root: ProjectRootRef, invocation: CommandInvocation, environment: SealedBindings, resources: Vec<CommandResource>, budget: ProcessBudget, outputs: OutputContract, cleanup: CleanupContract, network: NetworkAccess, route: CommandRoute, replay: CommandReplayPolicy, ) -> Result<Self>
Validates and identifies an exact trusted command allowlist entry.
Sourcepub const fn program(&self) -> &ProgramRef
pub const fn program(&self) -> &ProgramRef
Returns the boot-trusted executable or interpreter identity.
Sourcepub const fn root(&self) -> &ProjectRootRef
pub const fn root(&self) -> &ProjectRootRef
Returns the boot-trusted working-root identity.
Sourcepub const fn invocation(&self) -> &CommandInvocation
pub const fn invocation(&self) -> &CommandInvocation
Returns the exact invocation.
Sourcepub const fn environment(&self) -> &SealedBindings
pub const fn environment(&self) -> &SealedBindings
Returns the sealed, empty-by-default environment.
Sourcepub fn resources(&self) -> &[CommandResource]
pub fn resources(&self) -> &[CommandResource]
Returns all explicit input, output, cache, and scratch resources.
Sourcepub const fn budget(&self) -> &ProcessBudget
pub const fn budget(&self) -> &ProcessBudget
Returns the mandatory time, input, and output budget.
Sourcepub const fn outputs(&self) -> &OutputContract
pub const fn outputs(&self) -> &OutputContract
Returns the semantic postcondition contract.
Sourcepub const fn cleanup(&self) -> &CleanupContract
pub const fn cleanup(&self) -> &CleanupContract
Returns the descendant and resource cleanup contract.
Sourcepub const fn network(&self) -> &NetworkAccess
pub const fn network(&self) -> &NetworkAccess
Returns the separately scoped network policy.
Sourcepub const fn route(&self) -> &CommandRoute
pub const fn route(&self) -> &CommandRoute
Returns the selected process or sandbox boundary.
Sourcepub const fn replay(&self) -> CommandReplayPolicy
pub const fn replay(&self) -> CommandReplayPolicy
Returns the replay policy bound into operation intent.
Sourcepub fn canonical_datum(&self) -> Datum
pub fn canonical_datum(&self) -> Datum
Returns the canonical semantic command specification.
Trait Implementations§
Source§impl Clone for CommandSpec
impl Clone for CommandSpec
Source§fn clone(&self) -> CommandSpec
fn clone(&self) -> CommandSpec
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 CommandSpec
impl Debug for CommandSpec
impl Eq for CommandSpec
Source§impl PartialEq for CommandSpec
impl PartialEq for CommandSpec
impl StructuralPartialEq for CommandSpec
Auto Trait Implementations§
impl Freeze for CommandSpec
impl RefUnwindSafe for CommandSpec
impl Send for CommandSpec
impl Sync for CommandSpec
impl Unpin for CommandSpec
impl UnsafeUnpin for CommandSpec
impl UnwindSafe for CommandSpec
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