Trait xstack_kad::RoutingAlogrithm
source · pub trait RoutingAlogrithm {
// Required method
fn route(
&self,
peer_id: &PeerId,
) -> impl Future<Output = Result<Routing>> + Send + 'static;
}Expand description
A recursive routing algorithm must implement this trait.
Required Methods§
Object Safety§
This trait is not object safe.