Skip to main content

SegmentFetcher

Trait SegmentFetcher 

Source
pub trait SegmentFetcher:
    Send
    + Sync
    + 'static {
    // Required method
    fn fetch_segments<'life0, 'async_trait>(
        &'life0 self,
        src: IsdAsn,
        dst: IsdAsn,
    ) -> Pin<Box<dyn Future<Output = Result<Segments, SegmentFetchError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Segment fetcher trait.

Required Methods§

Source

fn fetch_segments<'life0, 'async_trait>( &'life0 self, src: IsdAsn, dst: IsdAsn, ) -> Pin<Box<dyn Future<Output = Result<Segments, SegmentFetchError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetch path segments between src and dst.

Implementors§