Skip to main content

Routing

Trait Routing 

Source
pub trait Routing<N: Network>:
    P2P
    + Disconnect
    + OnConnect
    + Handshake
    + Inbound<N>
    + Outbound<N>
    + Heartbeat<N> {
    // Provided methods
    fn initialize_routing<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn enable_listener<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn initialize_heartbeat(&self) { ... }
}

Provided Methods§

Source

fn initialize_routing<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Initialize the routing.

Source

fn enable_listener<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Source

fn initialize_heartbeat(&self)

Spawns the heartbeat background task for this instance of Routing.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§