pub struct Graph { /* private fields */ }Implementations§
Source§impl Graph
impl Graph
pub fn new(nodes: Vec<Node>) -> Result<Self>
Expose the hash-read ablation without changing action keys.
Sourcepub fn fingerprint_workers(self, workers: usize) -> Result<Self>
pub fn fingerprint_workers(self, workers: usize) -> Result<Self>
Bound the number of parallel input fingerprints.
Sourcepub fn reuse_dependency_outputs(self, enabled: bool) -> Self
pub fn reuse_dependency_outputs(self, enabled: bool) -> Self
A producer’s freshly verified tree can serve an exact declared input. Disable this to benchmark a redundant second pass over the same bytes.
Sourcepub fn external_tool_files(
self,
node: usize,
files: Vec<PathBuf>,
) -> Result<Self>
pub fn external_tool_files( self, node: usize, files: Vec<PathBuf>, ) -> Result<Self>
Add exact file identities for tool resources outside the workspace.
pub fn validate_tools(&self) -> Result<()>
pub fn planned_critical_path(&self) -> (u64, impl Iterator<Item = &str>)
pub fn run( &self, workspace: &Path, cache: Option<&Path>, limits: Capacity, cancel: &AtomicBool, ) -> Result<Report>
Auto Trait Implementations§
impl Forget for Graph
impl Freeze for Graphwhere
*const u8 is !null: Freeze,
PhantomData<Node>: Freeze,
PhantomData<Operation>: Freeze,
PhantomData<Task>: Freeze,
PhantomData<Vec<usize>>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Vec<Option<usize>>>: Freeze,
PhantomData<Vec<PathBuf>>: Freeze,
impl Move for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnsafeUnpin for Graphwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
PhantomData<Operation>: UnsafeUnpin,
PhantomData<Task>: UnsafeUnpin,
PhantomData<Vec<usize>>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Vec<Option<usize>>>: UnsafeUnpin,
PhantomData<Vec<PathBuf>>: UnsafeUnpin,
impl UnwindSafe for Graph
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