pub struct ActionChain { /* private fields */ }Expand description
A sequence of actions with simple Vec
Implementations§
Source§impl ActionChain
impl ActionChain
Sourcepub fn from_actions(actions: impl IntoIterator<Item = Action>) -> Self
pub fn from_actions(actions: impl IntoIterator<Item = Action>) -> Self
Create a new ActionChain from any iterator of actions
Sourcepub fn named(actions: Vec<Action>, name: impl Into<String>) -> Self
pub fn named(actions: Vec<Action>, name: impl Into<String>) -> Self
Create a new ActionChain with a name
Sourcepub fn actions_mut(&mut self) -> &mut Vec<Action>
pub fn actions_mut(&mut self) -> &mut Vec<Action>
Get mutable reference to actions vector for direct manipulation
Sourcepub fn extend(&mut self, actions: impl IntoIterator<Item = Action>)
pub fn extend(&mut self, actions: impl IntoIterator<Item = Action>)
Add multiple actions to the end of the chain
Sourcepub fn chain_with(self, other: ActionChain) -> Self
pub fn chain_with(self, other: ActionChain) -> Self
Create a new chain by appending another chain
Sourcepub fn positioning_actions(&self) -> Vec<&Action>
pub fn positioning_actions(&self) -> Vec<&Action>
Get actions that match a specific category
pub fn read_actions(&self) -> Vec<&Action>
pub fn control_actions(&self) -> Vec<&Action>
Sourcepub fn involves_motor(&self) -> bool
pub fn involves_motor(&self) -> bool
Check if chain contains any motor movements
Sourcepub fn involves_piezo(&self) -> bool
pub fn involves_piezo(&self) -> bool
Check if chain contains any piezo movements
Sourcepub fn modifies_bias(&self) -> bool
pub fn modifies_bias(&self) -> bool
Check if chain contains any bias modifications
Sourcepub fn analysis(&self) -> ChainAnalysis
pub fn analysis(&self) -> ChainAnalysis
Get detailed analysis of the chain
Source§impl ActionChain
impl ActionChain
Sourcepub fn system_status_check() -> Self
pub fn system_status_check() -> Self
Comprehensive system status check
Sourcepub fn safe_tip_approach() -> Self
pub fn safe_tip_approach() -> Self
Safe tip approach with verification
Sourcepub fn move_and_approach(target: Position) -> Self
pub fn move_and_approach(target: Position) -> Self
Move to position and approach
Sourcepub fn bias_pulse_sequence(voltage: f32, duration_ms: u32) -> Self
pub fn bias_pulse_sequence(voltage: f32, duration_ms: u32) -> Self
Bias pulse sequence with restoration
Sourcepub fn position_survey(positions: Vec<Position>) -> Self
pub fn position_survey(positions: Vec<Position>) -> Self
Survey multiple positions
Sourcepub fn tip_recovery_sequence() -> Self
pub fn tip_recovery_sequence() -> Self
Complete tip recovery sequence
Trait Implementations§
Source§impl Clone for ActionChain
impl Clone for ActionChain
Source§fn clone(&self) -> ActionChain
fn clone(&self) -> ActionChain
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionChain
impl Debug for ActionChain
Source§impl From<ActionChain> for ActionRequest
impl From<ActionChain> for ActionRequest
Source§fn from(chain: ActionChain) -> Self
fn from(chain: ActionChain) -> Self
Converts to this type from the input type.
Source§impl FromIterator<Action> for ActionChain
impl FromIterator<Action> for ActionChain
Source§impl<'a> IntoIterator for &'a ActionChain
impl<'a> IntoIterator for &'a ActionChain
Auto Trait Implementations§
impl Freeze for ActionChain
impl RefUnwindSafe for ActionChain
impl Send for ActionChain
impl Sync for ActionChain
impl Unpin for ActionChain
impl UnwindSafe for ActionChain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more