Skip to main content

AsterRuntimeComponent

Trait AsterRuntimeComponent 

Source
pub trait AsterRuntimeComponent<S> {
    type Output;

    // Required method
    fn apply(self, builder: AsterRuntimeBuilder<S>) -> Self::Output;
}
Expand description

Runtime component adapter used by AsterRuntimeBuilder::component.

Service components can change the builder’s service future type. Registry components keep the current builder type and only add lifecycle descriptors and hooks.

Required Associated Types§

Source

type Output

Builder type returned after this component is applied.

Required Methods§

Source

fn apply(self, builder: AsterRuntimeBuilder<S>) -> Self::Output

Applies the component to the runtime builder.

Implementors§