pub struct StaticEngine { /* private fields */ }Expand description
Basic engine implementation useful for tests and deterministic workflows.
Implementations§
Source§impl StaticEngine
impl StaticEngine
pub fn new(decision: EngineDecision) -> Self
Trait Implementations§
Source§impl Clone for StaticEngine
impl Clone for StaticEngine
Source§fn clone(&self) -> StaticEngine
fn clone(&self) -> StaticEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StaticEngine
impl Debug for StaticEngine
Source§impl DwEngine for StaticEngine
impl DwEngine for StaticEngine
fn decide( &self, _context: &EngineContext, ) -> Result<EngineDecision, EngineError>
Source§fn decide_with_envelope(
&self,
_envelope: &TaskEnvelope,
) -> Result<EngineDecision, EngineError>
fn decide_with_envelope( &self, _envelope: &TaskEnvelope, ) -> Result<EngineDecision, EngineError>
Fast path that lets runtimes avoid cloning envelopes when asking
for an engine decision.
Auto Trait Implementations§
impl Freeze for StaticEngine
impl RefUnwindSafe for StaticEngine
impl Send for StaticEngine
impl Sync for StaticEngine
impl Unpin for StaticEngine
impl UnsafeUnpin for StaticEngine
impl UnwindSafe for StaticEngine
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