Skip to main content

Runtime

Trait Runtime 

Source
pub trait Runtime:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn name(&self) -> Cow<'static, str>;
    fn prepare_with_options(
        &self,
        model: Graph<TypedFact, Box<dyn TypedOp>>,
        options: &RunOptions,
    ) -> Result<Box<dyn Runnable>, Error>;

    // Provided method
    fn prepare(
        &self,
        model: Graph<TypedFact, Box<dyn TypedOp>>,
    ) -> Result<Box<dyn Runnable>, Error> { ... }
}

Required Methods§

Source

fn name(&self) -> Cow<'static, str>

Source

fn prepare_with_options( &self, model: Graph<TypedFact, Box<dyn TypedOp>>, options: &RunOptions, ) -> Result<Box<dyn Runnable>, Error>

Provided Methods§

Source

fn prepare( &self, model: Graph<TypedFact, Box<dyn TypedOp>>, ) -> Result<Box<dyn Runnable>, Error>

Implementors§