pub struct TemporaryParserArtifactProfile { /* private fields */ }Expand description
Owns cleanup of an artifact profile created from a temporary pack root.
Callers must either hold the parser-pack lifecycle’s exclusive lease or run
on an isolated host where no installed copy of the same artifact can be in
use. Normal control flow must call Self::cleanup; Drop is only a
best-effort fallback for unwinding or a forgotten terminal action.
Implementations§
Source§impl TemporaryParserArtifactProfile
impl TemporaryParserArtifactProfile
Sourcepub fn for_verified_supervisor(supervisor: &OptionalParserSupervisor) -> Self
pub fn for_verified_supervisor(supervisor: &OptionalParserSupervisor) -> Self
Arm cleanup ownership from an already verified parser artifact authority.
The caller must hold the lifecycle’s exclusive pack lease or run on an isolated verifier host before allowing packaged code to execute.
Sourcepub fn cleanup(self) -> Result<(), OptionalParserPackLifecycleError>
pub fn cleanup(self) -> Result<(), OptionalParserPackLifecycleError>
Consume the one explicit fallible artifact-profile cleanup attempt.
A failure reaches the caller without another destructor attempt.
§Errors
Returns a typed lifecycle error when the exact broker cannot validate or remove its artifact-scoped profile and access-control entries.