Skip to main content

ToolTrait

Trait ToolTrait 

Source
pub trait ToolTrait {
    // Required methods
    fn install(&self) -> Result<(), SolarError>;
    fn remove(&self) -> Result<(), SolarError>;

    // Provided methods
    fn act(&self, action: &Action) -> Result<(), SolarError> { ... }
    fn upgrade(&self) -> Result<(), SolarError> { ... }
}

Required Methods§

Provided Methods§

Source

fn act(&self, action: &Action) -> Result<(), SolarError>

Source

fn upgrade(&self) -> Result<(), SolarError>

Implementors§