pub trait DestinationGenerator: Send {
// Required method
fn choose_destination(
&self,
source: PublicKey,
) -> Result<(NodeInfo, Option<u64>), DestinationGenerationError>;
}
Required Methods§
Sourcefn choose_destination(
&self,
source: PublicKey,
) -> Result<(NodeInfo, Option<u64>), DestinationGenerationError>
fn choose_destination( &self, source: PublicKey, ) -> Result<(NodeInfo, Option<u64>), DestinationGenerationError>
choose_destination picks a destination node within the network, returning the node’s information and its capacity (if available).