pub struct FlowOptimizationSuggestor;Expand description
Routes flow through a directed network at minimum cost (Successive Shortest Paths with Bellman-Ford).
Trait Implementations§
Source§impl Suggestor for FlowOptimizationSuggestor
impl Suggestor for FlowOptimizationSuggestor
Source§fn dependencies(&self) -> &[ContextKey]
fn dependencies(&self) -> &[ContextKey]
Context keys this suggestor reads from. Read more
Source§fn complexity_hint(&self) -> Option<&'static str>
fn complexity_hint(&self) -> Option<&'static str>
Algorithmic complexity of this suggestor’s core computation. Read more
Source§fn accepts(&self, ctx: &dyn Context) -> bool
fn accepts(&self, ctx: &dyn Context) -> bool
Pure predicate: should this suggestor execute given the current context? Read more
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 dyn Context,
) -> Pin<Box<dyn Future<Output = AgentEffect> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 dyn Context,
) -> Pin<Box<dyn Future<Output = AgentEffect> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Produce effects given the current context. Read more
Source§fn provenance(&self) -> Provenance
fn provenance(&self) -> Provenance
Typed provenance for this suggestor’s emitted facts and execution span. Read more
Auto Trait Implementations§
impl Freeze for FlowOptimizationSuggestor
impl RefUnwindSafe for FlowOptimizationSuggestor
impl Send for FlowOptimizationSuggestor
impl Sync for FlowOptimizationSuggestor
impl Unpin for FlowOptimizationSuggestor
impl UnsafeUnpin for FlowOptimizationSuggestor
impl UnwindSafe for FlowOptimizationSuggestor
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