pub struct BuildRunner { /* private fields */ }Expand description
The build/run orchestrator.
Implementations§
Source§impl BuildRunner
impl BuildRunner
pub fn new(workspace: PathBuf, config: BuildRunnerConfig) -> Self
pub fn with_workspace(self, workspace: PathBuf) -> Self
Sourcepub async fn run_build(&self) -> BuildResult
pub async fn run_build(&self) -> BuildResult
Run cargo build with retries. Returns the last attempt’s result.
Sourcepub async fn run_test(&self) -> BuildResult
pub async fn run_test(&self) -> BuildResult
Run cargo test with retries. Returns the last attempt’s result.
Sourcepub async fn run_cycle(&self) -> (BuildResult, Option<BuildResult>)
pub async fn run_cycle(&self) -> (BuildResult, Option<BuildResult>)
Run cargo build then cargo test. Stops after the build if it
fails — testing a broken compile is wasted time.
Auto Trait Implementations§
impl Freeze for BuildRunner
impl RefUnwindSafe for BuildRunner
impl Send for BuildRunner
impl Sync for BuildRunner
impl Unpin for BuildRunner
impl UnsafeUnpin for BuildRunner
impl UnwindSafe for BuildRunner
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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