Struct amfnbatchlib::batch::list_batch::ListBatch[]

pub struct ListBatch { /* fields omitted */ }

List of batches list trait.

Implementations

impl ListBatch

List of batches implementation.

pub fn new(threads_param: usize) -> ListBatch

Create and return a new list of batches.

Arguments

  • threads_param - Number of simultaneous threads to execute.

Return

  • See description.

pub fn add_batch(
    &mut self,
    name_param: &str,
    group_param: &str,
    locale_param: &str,
    enabled_param: bool,
    actions_param: Vec<ElemBatchAction>,
    inputs_param: Vec<ElemBatchIO>,
    outputs_param: Vec<ElemBatchIO>
) -> bool

Add a new batch into the batches list. Duplicate batches are allowed.

Arguments

  • name_param - Name of the batch.
  • group_param - Optional group of the batch.
  • locale_param - User locale of the batch.
  • enabled_param - Enabled for execution.
  • actions_param - Actions of the batch.
  • inputs_param - Inputs of the batch.
  • outputs_param - Outputs of the batch.

Return

  • True if successful, otherwise false.

pub fn name(&self) -> &str

Get the name of the batch.

Return

  • See description.

pub fn group(&self) -> &str

Get the optional group of the batch.

Return

  • See description.

pub fn locale(&self) -> &str

Get the locale of the batch.

Return

  • See description.

pub fn enabled(&self) -> bool

Get the enabled execution batch.

Return

  • See description.

pub fn threads(&self) -> usize

Get the Number of simultaneous threads to execute.

Return

  • See description.

pub fn actions(&self) -> &Vec<ElemBatchAction>

Get the list of actions.

Return

  • See description.

pub fn inputs(&self) -> &Vec<ElemBatchIO>

Get the inputs of the batch.

Return

  • See description.

pub fn outputs(&self) -> &Vec<ElemBatchIO>

Get the outputs of the batch.

Return

  • See description.

pub fn copy_actions(&self) -> Vec<ElemBatchAction>

Copy the actions.

Return

  • See description.

pub fn copy_inputs(&self) -> Vec<ElemBatchIO>

Copy the inputs.

Return

  • See description.

pub fn copy_outputs(&self) -> Vec<ElemBatchIO>

Copy the outputs.

Return

  • See description.

Trait Implementations

impl ListTrait for ListBatch

List of batches list trait implementation.

fn clear(&mut self)

Clear all batches from the batch list.

fn count(&self) -> usize

Get the count of the batch list.

Return

  • See description.

fn index(&self) -> usize

Get the index of the selected batch (starting from 0).

Return

  • See description.

fn get_element(&self, index_param: usize) -> bool

Select a batch based upon an index.

Arguments

  • index_param - Index of the batch to select (starting from 0).

Return

  • True if successful, otherwise false.

fn set_index(&self, index_param: usize) -> bool

Set the list index.

Arguments

  • index_param - See description.

Return

  • True if successful, otherwise false.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.