Struct amfnbatchlib::batch::list_batch::ListBatch [−]
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
&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
pub fn group(&self) -> &str
pub fn locale(&self) -> &str
pub fn enabled(&self) -> bool
pub fn threads(&self) -> usize
pub fn actions(&self) -> &Vec<ElemBatchAction>
pub fn inputs(&self) -> &Vec<ElemBatchIO>
pub fn outputs(&self) -> &Vec<ElemBatchIO>
pub fn copy_actions(&self) -> Vec<ElemBatchAction>
pub fn copy_inputs(&self) -> Vec<ElemBatchIO>
pub fn copy_outputs(&self) -> Vec<ElemBatchIO>
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
fn index(&self) -> usize
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
Auto Trait Implementations
impl !RefUnwindSafe for ListBatch
impl Send for ListBatch
impl !Sync for ListBatch
impl Unpin for ListBatch
impl UnwindSafe for ListBatch
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,