PathDiscovery

Trait PathDiscovery 

Source
pub trait PathDiscovery: Send + Sync {
    // Required method
    fn list_segments<'life0, 'async_trait>(
        &'life0 self,
        src: IsdAsn,
        dst: IsdAsn,
        page_size: i32,
        page_token: String,
    ) -> Pin<Box<dyn Future<Output = Result<Segments, SegmentsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Path discovery trait.

Required Methods§

Source

fn list_segments<'life0, 'async_trait>( &'life0 self, src: IsdAsn, dst: IsdAsn, page_size: i32, page_token: String, ) -> Pin<Box<dyn Future<Output = Result<Segments, SegmentsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List path segments between the given source and destination ISD-ASes.

Implementors§