Trait 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>

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 ComposeCommand<Vec<Stats>> for StatsCommand

Source§

const COMMAND: &'static str = "stats"

Source§

impl ComposeCommand<Vec<Container>> for PsCommand

Source§

const COMMAND: &'static str = "ps"