Trait snarkos_node_router::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)

Initialize a new instance of the heartbeat.

Object Safety§

This trait is not object safe.

Implementors§