pub struct BuildSession {
pub config: BuildConfig,
pub plan: BuildPlan,
pub events: BuildEventLog,
pub stats: BuildStats,
pub phase: BuildPhase,
}Expand description
A stateful build session, tracking progress of a single build invocation.
Fields§
§config: BuildConfigConfiguration.
plan: BuildPlanThe build plan.
events: BuildEventLogEvents recorded during the build.
stats: BuildStatsRunning statistics.
phase: BuildPhaseCurrent phase.
Implementations§
Source§impl BuildSession
impl BuildSession
Sourcepub fn start(config: BuildConfig) -> Self
pub fn start(config: BuildConfig) -> Self
Start a new session.
Sourcepub fn advance_phase(&mut self)
pub fn advance_phase(&mut self)
Advance to the next phase.
Sourcepub fn record_built(&mut self, target_name: &str)
pub fn record_built(&mut self, target_name: &str)
Record a target as built.
Sourcepub fn record_failed(&mut self, target_name: &str, error: &str)
pub fn record_failed(&mut self, target_name: &str, error: &str)
Record a target as failed.
Auto Trait Implementations§
impl Freeze for BuildSession
impl RefUnwindSafe for BuildSession
impl Send for BuildSession
impl Sync for BuildSession
impl Unpin for BuildSession
impl UnsafeUnpin for BuildSession
impl UnwindSafe for BuildSession
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