pub trait Transport: Send + Sync {
// Required methods
fn node_call(&self, message: Vec<u8>) -> Result<Vec<u8>, Error>;
fn call(
&self,
dbid: u64,
peer_id: PubKey,
message: Vec<u8>,
) -> Result<Vec<u8>, Error>;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".