pub struct DelayOperator;Expand description
Sleeps for N milliseconds (from “delay_ms”), useful for testing streaming/async DAGs.
Trait Implementations§
Source§impl SomaOperator for DelayOperator
impl SomaOperator for DelayOperator
Source§fn execute(&self, inputs: &SymbolicContext) -> Result<SymbolicContext>
fn execute(&self, inputs: &SymbolicContext) -> Result<SymbolicContext>
Execute the operator on the given symbolic context, returning a new context or error.
Source§fn metadata(&self) -> OperatorMetadata
fn metadata(&self) -> OperatorMetadata
Return metadata describing the operator for introspection and selection.
Source§fn cognitive_cost(&self) -> f64
fn cognitive_cost(&self) -> f64
Return the estimated cognitive cost of this operator.
Source§fn uncertainty_propagation(&self) -> UncertaintyModel
fn uncertainty_propagation(&self) -> UncertaintyModel
Return the uncertainty propagation model for this operator.
Auto Trait Implementations§
impl Freeze for DelayOperator
impl RefUnwindSafe for DelayOperator
impl Send for DelayOperator
impl Sync for DelayOperator
impl Unpin for DelayOperator
impl UnsafeUnpin for DelayOperator
impl UnwindSafe for DelayOperator
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