pub struct NativeExtensionArtifacts { /* private fields */ }Expand description
Pure reads only: no dlopen, registration, worker, staging or discovery. Bytes, order and canonical source provenance are immutable after freeze. Approvals must independently match this provenance/digest before loading.
Implementations§
Source§impl NativeExtensionArtifacts
impl NativeExtensionArtifacts
pub fn freeze(files: &[PathBuf]) -> BackendResult<Self>
pub fn identity(&self) -> &str
pub fn provenance(&self) -> Vec<(PathBuf, String)>
Sourcepub fn stage(
&self,
root: &Path,
agent: AgentId,
) -> BackendResult<Arc<NativeStagedExtensions>>
pub fn stage( &self, root: &Path, agent: AgentId, ) -> BackendResult<Arc<NativeStagedExtensions>>
Owned assembly only. Never uses ambient TMPDIR or a shared module path. The existing root must be explicit, private and owned by this uid. Each invocation (including the same Agent after reload) creates new inodes. Move the returned Arc into the SDK host_guard, not a Harness hook: the directory then survives late cleanup and remains retained on SDK failure.
Trait Implementations§
Auto Trait Implementations§
impl Forget for NativeExtensionArtifacts
impl Freeze for NativeExtensionArtifacts
impl Move for NativeExtensionArtifacts
impl RefUnwindSafe for NativeExtensionArtifacts
impl Send for NativeExtensionArtifactswhere
RawVecInner: Send,
impl Sync for NativeExtensionArtifactswhere
RawVecInner: Sync,
impl Unpin for NativeExtensionArtifacts
impl UnsafeUnpin for NativeExtensionArtifactswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Artifact>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for NativeExtensionArtifactswhere
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