Skip to main content

NodeIntrospection

Trait NodeIntrospection 

Source
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§

Source

fn interface_inventory(&self) -> Vec<InterfaceInventoryEntry<String>>

Source

fn packet_phy(&self, packet_hash: PacketHash) -> Option<PacketPhyStats>

Source

fn announce_rates( &self, ) -> impl Future<Output = Vec<AnnounceRateSnapshot>> + Send

Source

fn routes(&self) -> impl Future<Output = Vec<RouteSnapshot>> + Send

Source

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".

Implementors§