pub trait Transformer:
Send
+ Sync
+ DynClone {
// Required method
fn transform_node<'life0, 'async_trait>(
&'life0 self,
node: Node,
) -> Pin<Box<dyn Future<Output = Result<Node>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn concurrency(&self) -> Option<usize> { ... }
fn name(&self) -> &'static str { ... }
}
Expand description
Transforms single nodes into single nodes
Required Methods§
fn transform_node<'life0, 'async_trait>(
&'life0 self,
node: Node,
) -> Pin<Box<dyn Future<Output = Result<Node>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
Sourcefn concurrency(&self) -> Option<usize>
fn concurrency(&self) -> Option<usize>
Overrides the default concurrency of the pipeline
fn name(&self) -> &'static str
Trait Implementations§
Source§impl Transformer for &dyn Transformer
impl Transformer for &dyn Transformer
fn transform_node<'life0, 'async_trait>(
&'life0 self,
node: Node,
) -> Pin<Box<dyn Future<Output = Result<Node>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn concurrency(&self) -> Option<usize>
fn concurrency(&self) -> Option<usize>
Overrides the default concurrency of the pipeline
fn name(&self) -> &'static str
Source§impl Transformer for Box<dyn Transformer>
impl Transformer for Box<dyn Transformer>
fn transform_node<'life0, 'async_trait>(
&'life0 self,
node: Node,
) -> Pin<Box<dyn Future<Output = Result<Node>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn concurrency(&self) -> Option<usize>
fn concurrency(&self) -> Option<usize>
Overrides the default concurrency of the pipeline
fn name(&self) -> &'static str
Source§impl WithIndexingDefaults for Box<dyn Transformer>
impl WithIndexingDefaults for Box<dyn Transformer>
fn with_indexing_defaults(&mut self, indexing_defaults: IndexingDefaults)
Source§impl WithIndexingDefaults for dyn Transformer
impl WithIndexingDefaults for dyn Transformer
fn with_indexing_defaults(&mut self, _indexing_defaults: IndexingDefaults)
Implementations on Foreign Types§
Source§impl Transformer for Box<dyn Transformer>
impl Transformer for Box<dyn Transformer>
Implementors§
impl Transformer for &dyn Transformer
impl Transformer for Arc<dyn Transformer>
impl Transformer for MockTransformer
impl<F> Transformer for F
Use a closure as a transformer