Trait Web3Transport
pub trait Web3Transport: Debug + Clone {
type Out: Future<Output = Result<Value, Error>>;
// Required methods
fn prepare(&self, method: &str, params: Vec<Value>) -> (usize, Call);
fn send(&self, id: usize, request: Call) -> Self::Out;
// Provided method
fn execute(&self, method: &str, params: Vec<Value>) -> Self::Out { ... }
}
Expand description
Transport implementation
Required Associated Types§
Required Methods§
Provided Methods§
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.