pub trait TransformBuilder: MemoryBounds {
// Required methods
fn input_event_type(&self) -> EventType;
fn outputs(&self) -> &[OutputDefinition];
fn build<'life0, 'async_trait>(
&'life0 self,
context: ComponentContext,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Transform + Send>, GenericError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
A transform builder.
Transform builders are responsible for creating instances of Transform
s, as well as describing high-level
aspects of the built transform, such as the data types allowed for input events and the outputs exposed by the
transform.
Required Methods§
Sourcefn input_event_type(&self) -> EventType
fn input_event_type(&self) -> EventType
Event type allowed as input events to this transform.
Sourcefn outputs(&self) -> &[OutputDefinition]
fn outputs(&self) -> &[OutputDefinition]
Event outputs exposed by this transform.
Sourcefn build<'life0, 'async_trait>(
&'life0 self,
context: ComponentContext,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Transform + Send>, GenericError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn build<'life0, 'async_trait>(
&'life0 self,
context: ComponentContext,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Transform + Send>, GenericError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Builds an instance of the transform.
§Errors
If the transform cannot be built for any reason, an error is returned.