pub struct EnforcementReceipt { /* private fields */ }Expand description
Evidence returned by an execution backend about actual enforcement.
Its private fields prevent callers from manufacturing enforcement claims. No receipt is produced until a backend has performed execution.
ⓘ
use tapid_runner::{ContainmentSupport, EnforcementDimensions, EnforcementReceipt,
ExecutionLimits, ResolvedFilesystemGrants};
fn forge(support: ContainmentSupport, enforced: EnforcementDimensions,
resolved_filesystem: ResolvedFilesystemGrants, configured_limits: ExecutionLimits) {
let _ = EnforcementReceipt { support, enforced, resolved_filesystem, configured_limits };
}Implementations§
Source§impl EnforcementReceipt
impl EnforcementReceipt
pub fn executable_resolution(&self) -> Option<&ExecutableResolutionEvidence>
pub fn assurance(&self) -> AssuranceLevel
pub fn support(&self) -> &ContainmentSupport
pub fn backend(&self) -> &BackendIdentity
pub fn requested(&self) -> &EnforcementDimensions
pub fn declared(&self) -> &EnforcementDimensions
pub fn observed(&self) -> &EnforcementDimensions
pub fn enforced(&self) -> &EnforcementDimensions
Sourcepub fn established_evidence(&self) -> &[DimensionEvidence]
pub fn established_evidence(&self) -> &[DimensionEvidence]
Launch-time evidence that the backend established each reported restriction before spawn.
pub fn resolved_filesystem(&self) -> &ResolvedFilesystemGrants
pub fn configured_limits(&self) -> &ExecutionLimits
Trait Implementations§
Source§impl Clone for EnforcementReceipt
impl Clone for EnforcementReceipt
Source§impl Debug for EnforcementReceipt
impl Debug for EnforcementReceipt
impl Eq for EnforcementReceipt
Source§impl PartialEq for EnforcementReceipt
impl PartialEq for EnforcementReceipt
impl StructuralPartialEq for EnforcementReceipt
Auto Trait Implementations§
impl Forget for EnforcementReceipt
impl Freeze for EnforcementReceiptwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Vec<u8>>: Freeze,
PhantomData<DimensionEvidence>: Freeze,
PhantomData<ResolvedFilesystemGrant>: Freeze,
impl Move for EnforcementReceipt
impl RefUnwindSafe for EnforcementReceipt
impl Send for EnforcementReceiptwhere
RawVecInner: Send,
impl Sync for EnforcementReceiptwhere
RawVecInner: Sync,
impl Unpin for EnforcementReceipt
impl UnsafeUnpin for EnforcementReceiptwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Vec<u8>>: UnsafeUnpin,
PhantomData<DimensionEvidence>: UnsafeUnpin,
PhantomData<ResolvedFilesystemGrant>: UnsafeUnpin,
impl UnwindSafe for EnforcementReceiptwhere
RawVecInner: UnwindSafe,
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