Skip to main content

PropagationForwarderConfigSource

Trait PropagationForwarderConfigSource 

Source
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§

Source

type Forwarder: PropagationForwarder

The concrete forwarder type produced by this config.

Source

type Error: Error

The error type that may occur during forwarder construction.

Required Methods§

Source

fn build_forwarder(&self) -> Result<Self::Forwarder, Self::Error>

Build a forwarder from this configuration.

Implementors§