Trait compose_rs::command::ComposeCommand

source ·
pub trait ComposeCommand<ReturnT, ArgType = ()>
where ArgType: ComposeCommandArgs,
{ const COMMAND: &'static str; // Required method fn exec(self) -> Result<ReturnT, ComposeError>; }

Required Associated Constants§

source

const COMMAND: &'static str

Required Methods§

source

fn exec(self) -> Result<ReturnT, ComposeError>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ComposeCommand<Vec<Stats>> for StatsCommand

source§

const COMMAND: &'static str = "stats"

source§

impl ComposeCommand<Vec<Container>> for PsCommand

source§

const COMMAND: &'static str = "ps"