Trait RSSActionCmd

Source
pub trait RSSActionCmd {
    type CmdOutput;

    // Required method
    fn action(&self, tx: &mut RSSActionsTx<'_>) -> Result<Self::CmdOutput>;

    // Provided method
    fn execute(&self, cfg: &Config) -> Result<Self::CmdOutput> { ... }
}

Required Associated Types§

Required Methods§

Source

fn action(&self, tx: &mut RSSActionsTx<'_>) -> Result<Self::CmdOutput>

Provided Methods§

Source

fn execute(&self, cfg: &Config) -> Result<Self::CmdOutput>

Executes the command, opening the database and returning the output details object of the executed command.

Implementors§