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<SegmentsPage, SegmentsError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Path discovery trait.
Required Methods§
Sourcefn list_segments<'life0, 'async_trait>(
&'life0 self,
src: IsdAsn,
dst: IsdAsn,
page_size: i32,
page_token: String,
) -> Pin<Box<dyn Future<Output = Result<SegmentsPage, SegmentsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_segments<'life0, 'async_trait>(
&'life0 self,
src: IsdAsn,
dst: IsdAsn,
page_size: i32,
page_token: String,
) -> Pin<Box<dyn Future<Output = Result<SegmentsPage, SegmentsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List path segments between the given source and destination ISD-ASes.