Trait avalanche_types::rpcchainvm::common::appsender::AppSender
source · [−]pub trait AppSender: CloneBox {
fn send_app_request<'life0, 'async_trait>(
&'life0 self,
node_ids: Set,
request_id: u32,
request: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn send_app_response<'life0, 'async_trait>(
&'life0 self,
node_if: Id,
request_id: u32,
response: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn send_app_gossip<'life0, 'async_trait>(
&'life0 self,
msg: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn send_app_gossip_specific<'life0, 'async_trait>(
&'life0 self,
node_ids: Set,
msg: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
AppSender sends application (Vm) level messages. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/snow/engine/common#AppSender