pub trait SyncPathManager {
// Required methods
fn register_path(
&self,
src: IsdAsn,
dst: IsdAsn,
now: DateTime<Utc>,
path: Path<Bytes>,
);
fn try_cached_path(
&self,
src: IsdAsn,
dst: IsdAsn,
now: DateTime<Utc>,
) -> Result<Option<Path<Bytes>>>;
}Expand description
Trait for active path management with sync interface. Implementors of this trait should be able to be used in sync and async context. The functions must not block.