pub struct EngineData<P: ProfileId> {
pub cch: Arc<Cch>,
pub profiles: FxHashMap<P, Arc<RwLock<ProfileData>>>,
pub update_ctx: OnceLock<Arc<PartialUpdateContext>>,
}Expand description
The internal shared data state of the engine.
This is held behind an ArcSwap in CchEngine so topology rebuilds can be published atomically.
Fields§
§cch: Arc<Cch>The shared, metric-independent structural topology.
profiles: FxHashMap<P, Arc<RwLock<ProfileData>>>The customized metric data specific to each routing profile.
update_ctx: OnceLock<Arc<PartialUpdateContext>>Lazily initialized auxiliary indices used to accelerate repeated partial metric updates.
Auto Trait Implementations§
impl<P> !Freeze for EngineData<P>
impl<P> !RefUnwindSafe for EngineData<P>
impl<P> Send for EngineData<P>
impl<P> Sync for EngineData<P>
impl<P> Unpin for EngineData<P>where
P: Unpin,
impl<P> UnsafeUnpin for EngineData<P>
impl<P> !UnwindSafe for EngineData<P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more