pub struct DependencyGraphConfig {
pub max_depth: usize,
pub max_nodes: usize,
pub metadata_timeout: Duration,
pub max_concurrency: usize,
}Expand description
What: Configure bounded metadata graph resolution.
Inputs:
- Maximum transitive depth, graph-node count, metadata timeout, and provider batch concurrency.
Output:
- Limits resource use for one graph-resolution run.
Details:
- Defaults are depth 8, 256 nodes, 10-second metadata timeout, and one provider batch at a time. The synchronous resolver passes the timeout to the injected provider and keeps only one batch in flight; providers must honor the timeout for preemptive I/O cancellation.
Fields§
§max_depth: usizeMaximum edges from a root to a traversed child; zero resolves root metadata only.
max_nodes: usizeMaximum unique graph nodes, including roots and missing nodes.
metadata_timeout: DurationMaximum duration supplied to each metadata provider batch.
max_concurrency: usizeMaximum names supplied in one provider batch; the synchronous resolver runs batches serially.
Trait Implementations§
Source§impl Clone for DependencyGraphConfig
impl Clone for DependencyGraphConfig
Source§fn clone(&self) -> DependencyGraphConfig
fn clone(&self) -> DependencyGraphConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DependencyGraphConfig
Source§impl Debug for DependencyGraphConfig
impl Debug for DependencyGraphConfig
Source§impl Default for DependencyGraphConfig
impl Default for DependencyGraphConfig
Source§fn default() -> Self
fn default() -> Self
What: Construct conservative bounds for graph resolution.
Inputs:
- None.
Output:
- Returns depth 8, 256 nodes, a 10-second timeout, and serial provider batching.
Details:
- These defaults constrain fixture and production providers without changing the legacy
direct-only
DependencyResolver::resolveentry point.
impl Eq for DependencyGraphConfig
Source§impl PartialEq for DependencyGraphConfig
impl PartialEq for DependencyGraphConfig
impl StructuralPartialEq for DependencyGraphConfig
Auto Trait Implementations§
impl Freeze for DependencyGraphConfig
impl RefUnwindSafe for DependencyGraphConfig
impl Send for DependencyGraphConfig
impl Sync for DependencyGraphConfig
impl Unpin for DependencyGraphConfig
impl UnsafeUnpin for DependencyGraphConfig
impl UnwindSafe for DependencyGraphConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.