pub struct ArtifactHandle { /* private fields */ }Expand description
Digest-verified, read-only execution input selected before Adapter preparation.
Implementations§
Source§impl ArtifactHandle
impl ArtifactHandle
Sourcepub fn open(
path: impl Into<PathBuf>,
expected_digest: &str,
expected_size: u64,
) -> Result<Self, RuntimeFailure>
pub fn open( path: impl Into<PathBuf>, expected_digest: &str, expected_size: u64, ) -> Result<Self, RuntimeFailure>
Verifies one regular file against its canonical SHA-256 digest and size.
Sourcepub fn path(&self) -> &Path
pub fn path(&self) -> &Path
Returns the verified machine-local path. It is never serialized into a Plan.
Sourcepub fn read_verified(&self) -> Result<Vec<u8>, RuntimeFailure>
pub fn read_verified(&self) -> Result<Vec<u8>, RuntimeFailure>
Reads the bytes again and fails if they changed since admission.
Trait Implementations§
Source§impl Clone for ArtifactHandle
impl Clone for ArtifactHandle
Source§fn clone(&self) -> ArtifactHandle
fn clone(&self) -> ArtifactHandle
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 ArtifactHandle
impl Debug for ArtifactHandle
impl Eq for ArtifactHandle
Source§impl PartialEq for ArtifactHandle
impl PartialEq for ArtifactHandle
impl StructuralPartialEq for ArtifactHandle
Auto Trait Implementations§
impl Freeze for ArtifactHandle
impl RefUnwindSafe for ArtifactHandle
impl Send for ArtifactHandle
impl Sync for ArtifactHandle
impl Unpin for ArtifactHandle
impl UnsafeUnpin for ArtifactHandle
impl UnwindSafe for ArtifactHandle
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