Trait Configurable

Source
pub trait Configurable: Command {
    type Config;

    // Required method
    fn with_config(self, config: Self::Config) -> Self;
}
Expand description

Trait for commands that can be configured

Required Associated Types§

Source

type Config

Configuration type for this command

Required Methods§

Source

fn with_config(self, config: Self::Config) -> Self

Apply configuration to the command

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§