Trait NetworkConfiguration

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

Source

fn public_rpc_urls(&self) -> Vec<RpcConfig>

Source

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.

Implementors§