pub trait NodeIntrospection {
// Required methods
fn interface_inventory(&self) -> Vec<InterfaceInventoryEntry<String>>;
fn link_count(&self) -> impl Future<Output = u32> + Send;
fn packet_phy(&self, packet_hash: PacketHash) -> Option<PacketPhyStats>;
fn announce_rates(
&self,
) -> impl Future<Output = Vec<AnnounceRateSnapshot>> + Send;
fn routes(&self) -> impl Future<Output = Vec<RouteSnapshot>> + Send;
fn route(
&self,
destination: DestinationHash,
) -> impl Future<Output = Option<RouteSnapshot>> + Send;
}Required Methods§
fn interface_inventory(&self) -> Vec<InterfaceInventoryEntry<String>>
fn link_count(&self) -> impl Future<Output = u32> + Send
fn packet_phy(&self, packet_hash: PacketHash) -> Option<PacketPhyStats>
fn announce_rates( &self, ) -> impl Future<Output = Vec<AnnounceRateSnapshot>> + Send
fn routes(&self) -> impl Future<Output = Vec<RouteSnapshot>> + Send
fn route( &self, destination: DestinationHash, ) -> impl Future<Output = Option<RouteSnapshot>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".