Skip to main content

DirectSubmitTransport

Trait DirectSubmitTransport 

Source
pub trait DirectSubmitTransport: Send + Sync {
    // Required method
    fn submit_direct<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        tx_bytes: &'life1 [u8],
        targets: &'life2 [LeaderTarget],
        policy: RoutingPolicy,
        config: &'life3 DirectSubmitConfig,
    ) -> Pin<Box<dyn Future<Output = Result<LeaderTarget, SubmitTransportError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Direct transport interface.

Required Methods§

Source

fn submit_direct<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, tx_bytes: &'life1 [u8], targets: &'life2 [LeaderTarget], policy: RoutingPolicy, config: &'life3 DirectSubmitConfig, ) -> Pin<Box<dyn Future<Output = Result<LeaderTarget, SubmitTransportError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Submits transaction bytes to direct targets and returns the first successful target.

Implementors§