pub struct BuildCoordinator { /* private fields */ }Expand description
Build coordinator for managing WASM compilation
Implementations§
Source§impl BuildCoordinator
impl BuildCoordinator
Sourcepub fn new(config: RunnerConfig, opt_level: OptLevel) -> Self
pub fn new(config: RunnerConfig, opt_level: OptLevel) -> Self
Create a new build coordinator
Sourcepub fn status(&self) -> BuildStatus
pub fn status(&self) -> BuildStatus
Get current status
Sourcepub fn last_result(&self) -> Option<&BuildResult>
pub fn last_result(&self) -> Option<&BuildResult>
Get last build result
Sourcepub fn build_args(&self) -> Vec<String>
pub fn build_args(&self) -> Vec<String>
Build the cargo command arguments
Sourcepub fn simulate_build(&mut self) -> BuildResult
pub fn simulate_build(&mut self) -> BuildResult
Simulate a build (for testing without actual compilation)
Sourcepub fn mark_started(&mut self)
pub fn mark_started(&mut self)
Mark build as started
Sourcepub fn mark_completed(&mut self, result: BuildResult)
pub fn mark_completed(&mut self, result: BuildResult)
Mark build as completed
Sourcepub fn config(&self) -> &RunnerConfig
pub fn config(&self) -> &RunnerConfig
Get configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuildCoordinator
impl RefUnwindSafe for BuildCoordinator
impl Send for BuildCoordinator
impl Sync for BuildCoordinator
impl Unpin for BuildCoordinator
impl UnsafeUnpin for BuildCoordinator
impl UnwindSafe for BuildCoordinator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more