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) { ... }
fn initialize_report(&self) { ... }
}
Provided Methods§
sourcefn initialize_routing<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
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.
fn enable_listener<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
sourcefn initialize_heartbeat(&self)
fn initialize_heartbeat(&self)
Initialize a new instance of the heartbeat.
sourcefn initialize_report(&self)
fn initialize_report(&self)
Initialize a new instance of the report.
Object Safety§
This trait is not object safe.