Session

Trait Session 

Source
pub trait Session: Service {
    // Required methods
    fn submit_runnable(&mut self, runnable: RunnableHolder) -> Result<()>;
    fn build_session(&mut self) -> Result<()>;

    // Provided method
    fn submit<D, S>(&mut self, s: S, try_into_dag: D) -> Result<()>
       where D: Into<DAG>,
             S: TryInto<ScheduleExpr>,
             BronzeError: From<S::Error> { ... }
}

Required Methods§

Source

fn submit_runnable(&mut self, runnable: RunnableHolder) -> Result<()>

Source

fn build_session(&mut self) -> Result<()>

Provided Methods§

Source

fn submit<D, S>(&mut self, s: S, try_into_dag: D) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<SG: Storage, TG: Trigger, E: Executor> Session for LocalSession<SG, TG, E>

Source§

impl<SG: Storage, TG: Trigger, E: Executor> Session for RemoteSession<SG, TG, E>