pub(crate) struct SymbolBuildOptions {
pub(crate) max_bytes: u64,
max_workers: Option<usize>,
timeout: Option<Duration>,
pub(crate) timeout_seconds: Option<u64>,
}Expand description
Options controlling source parsing during symbol graph builds.
Fields§
§max_bytes: u64Maximum file size parsed for symbols.
max_workers: Option<usize>Optional maximum worker threads for parser work.
timeout: Option<Duration>Optional deadline for starting parser work.
timeout_seconds: Option<u64>Serialized timeout value for reports.
Implementations§
Source§impl SymbolBuildOptions
impl SymbolBuildOptions
Sourcepub(crate) fn new(
max_bytes: u64,
max_workers: Option<usize>,
timeout_seconds: Option<u64>,
) -> Self
pub(crate) fn new( max_bytes: u64, max_workers: Option<usize>, timeout_seconds: Option<u64>, ) -> Self
Create symbol build options from CLI/MCP values.
Sourcepub(crate) fn with_worker_ceiling(self, max_workers: usize) -> Self
pub(crate) fn with_worker_ceiling(self, max_workers: usize) -> Self
Apply a worker ceiling without weakening a tighter caller limit.
Sourcepub(crate) fn reported_workers(self) -> usize
pub(crate) fn reported_workers(self) -> usize
Return the worker count that will be reported.
Sourcefn effective_workers(self) -> usize
fn effective_workers(self) -> usize
Derive the worker count from caller policy, host availability, and the safety ceiling.
Sourcepub(crate) fn is_timed_out(self, started_at: Instant) -> bool
pub(crate) fn is_timed_out(self, started_at: Instant) -> bool
Return whether the parser build deadline has elapsed.
Trait Implementations§
Source§impl Clone for SymbolBuildOptions
impl Clone for SymbolBuildOptions
Source§fn clone(&self) -> SymbolBuildOptions
fn clone(&self) -> SymbolBuildOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SymbolBuildOptions
impl Debug for SymbolBuildOptions
impl Copy for SymbolBuildOptions
Auto Trait Implementations§
impl Freeze for SymbolBuildOptions
impl RefUnwindSafe for SymbolBuildOptions
impl Send for SymbolBuildOptions
impl Sync for SymbolBuildOptions
impl Unpin for SymbolBuildOptions
impl UnwindSafe for SymbolBuildOptions
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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