pub trait NetworkConfiguration: Sized {
type Provider;
// Required methods
fn public_rpc_urls(&self) -> Vec<RpcConfig>;
fn new_provider(
config: ProviderConfig,
) -> Result<Self::Provider, ProviderError>;
}Required Associated Types§
Required Methods§
fn public_rpc_urls(&self) -> Vec<RpcConfig>
Sourcefn new_provider(config: ProviderConfig) -> Result<Self::Provider, ProviderError>
fn new_provider(config: ProviderConfig) -> Result<Self::Provider, ProviderError>
Creates a new provider instance using the provided configuration.
§Arguments
config- Provider configuration containing RPC configs and settings
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.