Skip to main content

PathFetcher

Trait PathFetcher 

Source
pub trait PathFetcher:
    Send
    + Sync
    + 'static {
    // Required method
    fn fetch_paths(
        &self,
        src: IsdAsn,
        dst: IsdAsn,
    ) -> impl Future<Output = Result<Vec<ScionPath>, PathFetchError>> + Send + '_;
}
Expand description

Path fetcher trait.

Required Methods§

Source

fn fetch_paths( &self, src: IsdAsn, dst: IsdAsn, ) -> impl Future<Output = Result<Vec<ScionPath>, PathFetchError>> + Send + '_

Fetch paths between source and destination ISD-AS.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§