pub struct PackExecutor { /* private fields */ }Expand description
Pack executor - coordinates phase-based execution
Executes packs through three phases:
- Acquisition: Per-workspace data collection
- Processing: Global data transformation
- Reporting: Global report generation
Implementations§
Source§impl PackExecutor
impl PackExecutor
Sourcepub fn with_options(client: Client, options: ExecutionOptions) -> Self
pub fn with_options(client: Client, options: ExecutionOptions) -> Self
Create with custom options
Sourcepub fn set_options(&mut self, options: ExecutionOptions)
pub fn set_options(&mut self, options: ExecutionOptions)
Set execution options
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set default timeout
Sourcepub fn validate(&self, config: &PackExecutorConfig) -> Result<()>
pub fn validate(&self, config: &PackExecutorConfig) -> Result<()>
Validate a pack configuration
Validates all phases (acquisition, processing, reporting) to ensure the pack can be executed successfully.
Sourcepub async fn execute(
&self,
config: PackExecutorConfig,
workspaces: Vec<Workspace>,
progress: Option<ProgressSender>,
) -> Result<PackExecutorResult>
pub async fn execute( &self, config: PackExecutorConfig, workspaces: Vec<Workspace>, progress: Option<ProgressSender>, ) -> Result<PackExecutorResult>
Execute a pack across workspaces
Auto Trait Implementations§
impl Freeze for PackExecutor
impl !RefUnwindSafe for PackExecutor
impl Send for PackExecutor
impl Sync for PackExecutor
impl Unpin for PackExecutor
impl !UnwindSafe for PackExecutor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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