pub struct CapabilityAggregator;Expand description
Cell capability aggregator
Implementations§
Source§impl CapabilityAggregator
impl CapabilityAggregator
Sourcepub fn aggregate_capabilities(
members: &[(NodeConfig, NodeState)],
) -> Result<HashMap<CapabilityType, AggregatedCapability>>
pub fn aggregate_capabilities( members: &[(NodeConfig, NodeState)], ) -> Result<HashMap<CapabilityType, AggregatedCapability>>
Sourcepub fn calculate_readiness_score(
capabilities: &HashMap<CapabilityType, AggregatedCapability>,
) -> f32
pub fn calculate_readiness_score( capabilities: &HashMap<CapabilityType, AggregatedCapability>, ) -> f32
Calculate squad readiness score based on aggregated capabilities
Returns a score from 0.0-1.0 indicating overall squad capability readiness
Sourcepub fn identify_gaps(
capabilities: &HashMap<CapabilityType, AggregatedCapability>,
required_capabilities: &[CapabilityType],
) -> Vec<CapabilityType>
pub fn identify_gaps( capabilities: &HashMap<CapabilityType, AggregatedCapability>, required_capabilities: &[CapabilityType], ) -> Vec<CapabilityType>
Identify capability gaps in the squad
Returns a list of missing or weak capability types
Auto Trait Implementations§
impl Freeze for CapabilityAggregator
impl RefUnwindSafe for CapabilityAggregator
impl Send for CapabilityAggregator
impl Sync for CapabilityAggregator
impl Unpin for CapabilityAggregator
impl UnsafeUnpin for CapabilityAggregator
impl UnwindSafe for CapabilityAggregator
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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