Trait Step

Source
pub trait Step {
    // Required methods
    fn execute(&self) -> Result<StepExecution, StepExecution>;
    fn get_status(&self) -> StepStatus;
    fn get_name(&self) -> &String;
    fn get_id(&self) -> Uuid;
    fn get_read_count(&self) -> usize;
    fn get_write_count(&self) -> usize;
    fn get_read_error_count(&self) -> usize;
    fn get_write_error_count(&self) -> usize;
}

Required Methods§

Source

fn execute(&self) -> Result<StepExecution, StepExecution>

Executes the step.

Returns a StepResult containing the execution details if the step is successful, or an error if the step fails.

Source

fn get_status(&self) -> StepStatus

Gets the status of the step.

Returns a StepStatus indicating the current status of the step.

Source

fn get_name(&self) -> &String

Gets the name of the step.

Returns a reference to the name of the step.

Source

fn get_id(&self) -> Uuid

Gets the ID of the step.

Returns the UUID representing the ID of the step.

Source

fn get_read_count(&self) -> usize

Gets the number of items read by the step.

Returns the count of items read by the step.

Source

fn get_write_count(&self) -> usize

Gets the number of items written by the step.

Returns the count of items written by the step.

Source

fn get_read_error_count(&self) -> usize

Gets the number of read errors encountered by the step.

Returns the count of read errors encountered by the step.

Source

fn get_write_error_count(&self) -> usize

Gets the number of write errors encountered by the step.

Returns the count of write errors encountered by the step.

Implementors§

Source§

impl<'a, R, W> Step for StepInstance<'a, R, W>