pub struct CloneableOperatorFactory { /* private fields */ }Expand description
Simple factory that clones a prototype chain.
Implementations§
Source§impl CloneableOperatorFactory
impl CloneableOperatorFactory
Sourcepub fn with_operator<F>(self, factory: F) -> Self
pub fn with_operator<F>(self, factory: F) -> Self
Adds an operator factory.
Sourcepub fn with_pipeline_breakers(self) -> Self
pub fn with_pipeline_breakers(self) -> Self
Marks that the chain has pipeline breakers.
Trait Implementations§
Source§impl Default for CloneableOperatorFactory
impl Default for CloneableOperatorFactory
Source§impl OperatorChainFactory for CloneableOperatorFactory
impl OperatorChainFactory for CloneableOperatorFactory
Source§fn create_chain(&self) -> Vec<Box<dyn PushOperator>>
fn create_chain(&self) -> Vec<Box<dyn PushOperator>>
Creates a new operator chain for a worker. Read more
Source§fn has_pipeline_breakers(&self) -> bool
fn has_pipeline_breakers(&self) -> bool
Returns whether the chain contains pipeline breakers. Read more
Source§fn chain_length(&self) -> usize
fn chain_length(&self) -> usize
Returns the number of operators in the chain.
Auto Trait Implementations§
impl Freeze for CloneableOperatorFactory
impl !RefUnwindSafe for CloneableOperatorFactory
impl Send for CloneableOperatorFactory
impl Sync for CloneableOperatorFactory
impl Unpin for CloneableOperatorFactory
impl !UnwindSafe for CloneableOperatorFactory
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