pub trait NetworkConfiguration: Sized {
type Provider;
// Required methods
fn public_rpc_urls(&self) -> Vec<String>;
fn new_provider(
rpc_urls: Vec<RpcConfig>,
timeout_seconds: u64,
) -> Result<Self::Provider, ProviderError>;
}
Required Associated Types§
Required Methods§
fn public_rpc_urls(&self) -> Vec<String>
fn new_provider( rpc_urls: Vec<RpcConfig>, timeout_seconds: u64, ) -> Result<Self::Provider, ProviderError>
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.