pub struct AgentRunner { /* private fields */ }Expand description
AgentRunner composes multiple runners into a single unified stream with optional global analyzers applied to the merged stream
Implementations§
Source§impl AgentRunner
impl AgentRunner
Sourcepub fn add_runner(self, runner: Box<dyn Runner>) -> Self
pub fn add_runner(self, runner: Box<dyn Runner>) -> Self
Add a pre-configured runner with its analyzer chain
Sourcepub fn add_global_analyzer(self, analyzer: Box<dyn Analyzer>) -> Self
pub fn add_global_analyzer(self, analyzer: Box<dyn Analyzer>) -> Self
Add analyzer that will be applied to the merged stream
Sourcepub fn runner_count(&self) -> usize
pub fn runner_count(&self) -> usize
Get the number of configured runners
Sourcepub fn analyzer_count(&self) -> usize
pub fn analyzer_count(&self) -> usize
Get the number of configured global analyzers
Trait Implementations§
Source§impl Default for AgentRunner
impl Default for AgentRunner
Source§fn default() -> AgentRunner
fn default() -> AgentRunner
Returns the “default value” for a type. Read more
Source§impl Runner for AgentRunner
impl Runner for AgentRunner
Source§fn run<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<EventStream, RunnerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<EventStream, RunnerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run the data collection and return a stream of events
Source§fn add_analyzer(self, analyzer: Box<dyn Analyzer>) -> Self
fn add_analyzer(self, analyzer: Box<dyn Analyzer>) -> Self
Add an analyzer to this runner’s processing chain
Auto Trait Implementations§
impl !RefUnwindSafe for AgentRunner
impl !UnwindSafe for AgentRunner
impl Freeze for AgentRunner
impl Send for AgentRunner
impl Sync for AgentRunner
impl Unpin for AgentRunner
impl UnsafeUnpin for AgentRunner
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