pub trait PropagationForwarderConfigSource: Debug {
type Forwarder: PropagationForwarder;
type Error: Error;
// Required method
fn build_forwarder(&self) -> Result<Self::Forwarder, Self::Error>;
}Expand description
Config-source trait for a propagation forwarder.
Implementors carry the configuration needed to construct a concrete
PropagationForwarder. The associated types bind the config shape to
the forwarder and error types, so
AccessTokenSubstrateRuntime::build_forwarder can be generic over any
forwarder implementation.
Required Associated Types§
Sourcetype Forwarder: PropagationForwarder
type Forwarder: PropagationForwarder
The concrete forwarder type produced by this config.
Required Methods§
Sourcefn build_forwarder(&self) -> Result<Self::Forwarder, Self::Error>
fn build_forwarder(&self) -> Result<Self::Forwarder, Self::Error>
Build a forwarder from this configuration.