dimas_core::traits

Trait Capability

Source
pub trait Capability: Debug {
    // Required method
    fn manage_operation_state(&self, state: &OperationState) -> Result<()>;
}
Expand description

Commonalities for capability components

Required Methods§

Source

fn manage_operation_state(&self, state: &OperationState) -> Result<()>

Checks whether state of capability component is appropriate for the given OperationState. If not, implementation has to adjusts components state to needs.

§Errors

Implementors§