[][src]Trait iza::resource::ResourceApp

pub trait ResourceApp: ExecutorRepositoryComponent + CommandRepositoryComponent + ExecuteCommandServiceComponent {
    fn new_command<CS, EID>(
        &'static self,
        command_strings_raw: CS,
        executor_id: EID
    ) -> Box<dyn Future<Item = Arc<Command>, Error = Error>>
    where
        CS: Into<CommandStringsRaw>,
        EID: Into<ExecutorID>
, { ... }
fn execute_command<CID>(
        &'static self,
        command_ids: Vec<CID>
    ) -> Box<dyn Future<Item = Vec<Arc<Execution<Box<dyn FnOnce()>>>>, Error = Error>>
    where
        CID: Into<CommandID>
, { ... }
fn new_executor<E, ED>(
        &'static self,
        executor_details: ED
    ) -> Box<dyn Future<Item = Arc<E>, Error = Error>>
    where
        E: Executor + 'static,
        ED: Into<ExecutorDetails>
, { ... } }

Resource App is a interface for library user.

Provided methods

fn new_command<CS, EID>(
    &'static self,
    command_strings_raw: CS,
    executor_id: EID
) -> Box<dyn Future<Item = Arc<Command>, Error = Error>> where
    CS: Into<CommandStringsRaw>,
    EID: Into<ExecutorID>, 

new Command

fn execute_command<CID>(
    &'static self,
    command_ids: Vec<CID>
) -> Box<dyn Future<Item = Vec<Arc<Execution<Box<dyn FnOnce()>>>>, Error = Error>> where
    CID: Into<CommandID>, 

execue Command

fn new_executor<E, ED>(
    &'static self,
    executor_details: ED
) -> Box<dyn Future<Item = Arc<E>, Error = Error>> where
    E: Executor + 'static,
    ED: Into<ExecutorDetails>, 

new Executor

Loading content...

Implementors

Loading content...