pub struct ProcessingPipeline { /* private fields */ }Expand description
Streaming pipeline for process intelligence.
Implementations§
Source§impl ProcessingPipeline
impl ProcessingPipeline
Sourcepub fn new(sector: SectorTemplate, config: PipelineConfig) -> Self
pub fn new(sector: SectorTemplate, config: PipelineConfig) -> Self
Create a new pipeline.
Sourcepub fn sector(&self) -> &SectorTemplate
pub fn sector(&self) -> &SectorTemplate
Get the sector template.
Sourcepub fn config(&self) -> &PipelineConfig
pub fn config(&self) -> &PipelineConfig
Get the configuration.
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Check if pipeline is running.
Sourcepub fn generate_batch(&mut self) -> Vec<GpuObjectEvent>
pub fn generate_batch(&mut self) -> Vec<GpuObjectEvent>
Generate next batch of events.
Sourcepub fn stats(&self) -> PipelineStats
pub fn stats(&self) -> PipelineStats
Get current statistics.
Sourcepub fn generator_stats(&self) -> &GeneratorStats
pub fn generator_stats(&self) -> &GeneratorStats
Get generator statistics.
Sourcepub fn throughput(&self) -> f32
pub fn throughput(&self) -> f32
Get estimated throughput.
Sourcepub fn reset_stats(&mut self)
pub fn reset_stats(&mut self)
Reset statistics.
Sourcepub fn set_sector(&mut self, sector: SectorTemplate)
pub fn set_sector(&mut self, sector: SectorTemplate)
Change sector template.
Sourcepub fn set_generator_config(&mut self, config: GeneratorConfig)
pub fn set_generator_config(&mut self, config: GeneratorConfig)
Update generator configuration.
Auto Trait Implementations§
impl Freeze for ProcessingPipeline
impl RefUnwindSafe for ProcessingPipeline
impl Send for ProcessingPipeline
impl Sync for ProcessingPipeline
impl Unpin for ProcessingPipeline
impl UnwindSafe for ProcessingPipeline
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.