pub struct Build { /* private fields */ }Implementations§
Source§impl Build
impl Build
pub fn new( config: &Config, scanpkgs: IndexMap<PkgName, ResolvedIndex>, options: BuildOptions, ) -> Build
Sourcepub fn load_cached_from_db(&mut self, db: &Database) -> Result<usize>
pub fn load_cached_from_db(&mut self, db: &Database) -> Result<usize>
Load cached build results from database.
Returns the number of packages loaded from cache. Only loads results for packages that are in our build queue.
Sourcepub fn cached(&self) -> &IndexMap<PkgName, BuildResult>
pub fn cached(&self) -> &IndexMap<PkgName, BuildResult>
Access completed build results.
pub fn start(&mut self, ctx: &RunContext, db: &Database) -> Result<BuildSummary>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Build
impl !RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl !UnwindSafe for Build
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> 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