pub struct ExecutionBundleBuilder<'a, R> { /* private fields */ }Implementations§
Source§impl<'a, R: SourceReader> ExecutionBundleBuilder<'a, R>
impl<'a, R: SourceReader> ExecutionBundleBuilder<'a, R>
pub fn new( project: &'a FrozenProject, revision: ProgramRevision, reader: R, ) -> ArtifactResult<Self>
pub fn with_recipe(self, recipe: ProgramBuildRecipe) -> Self
pub fn with_materialized_program( self, recipe: ProgramBuildRecipe, form: ExecutableForm, executable_bytes: Vec<u8>, ) -> Self
pub fn with_resources(self, resources: BuildResourceDeclaration) -> Self
Sourcepub fn with_compiled_package_closure(self) -> Self
pub fn with_compiled_package_closure(self) -> Self
Package an already compiled program without source files or a project handoff. The immutable program revision and sorted package identities remain in the bundle closure, so workers can validate the exact graph without resolving or materializing it.
pub fn build(self) -> ArtifactResult<ExecutionBundle>
Source§impl<'a> ExecutionBundleBuilder<'a, fn(&Path) -> ArtifactResult<Vec<u8>>>
impl<'a> ExecutionBundleBuilder<'a, fn(&Path) -> ArtifactResult<Vec<u8>>>
pub fn native( project: &'a FrozenProject, revision: ProgramRevision, ) -> ArtifactResult<Self>
Auto Trait Implementations§
impl<'a, R> Freeze for ExecutionBundleBuilder<'a, R>where
R: Freeze,
impl<'a, R> RefUnwindSafe for ExecutionBundleBuilder<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for ExecutionBundleBuilder<'a, R>where
R: Send,
impl<'a, R> Sync for ExecutionBundleBuilder<'a, R>where
R: Sync,
impl<'a, R> Unpin for ExecutionBundleBuilder<'a, R>where
R: Unpin,
impl<'a, R> UnsafeUnpin for ExecutionBundleBuilder<'a, R>where
R: UnsafeUnpin,
impl<'a, R> UnwindSafe for ExecutionBundleBuilder<'a, R>where
R: 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