pub struct CommandConfig {
pub chained_command: Option<CommandId>,
pub averaging: Avgs,
pub sample_time: Sts,
pub compare: Compare,
pub resolution: Mode,
pub wait_for_trigger: bool,
}Expand description
Configuration for a conversion command
Fields§
§chained_command: Option<CommandId>The command that will be executed next.
If None, conversion will end
averaging: AvgsThe averaging done on a conversion
sample_time: StsThe sampling time of a conversion
compare: CompareThe compare function being used
resolution: ModeThe resolution of a conversion
wait_for_trigger: boolWhen false, the command will not wait for a trigger once the command sequence has been started. When true, a trigger is required before the command is started.
Trait Implementations§
Source§impl Clone for CommandConfig
impl Clone for CommandConfig
Source§fn clone(&self) -> CommandConfig
fn clone(&self) -> CommandConfig
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 CommandConfig
impl Debug for CommandConfig
Source§impl Default for CommandConfig
impl Default for CommandConfig
Source§impl PartialEq for CommandConfig
impl PartialEq for CommandConfig
impl Eq for CommandConfig
impl StructuralPartialEq for CommandConfig
Auto Trait Implementations§
impl Freeze for CommandConfig
impl RefUnwindSafe for CommandConfig
impl Send for CommandConfig
impl Sync for CommandConfig
impl Unpin for CommandConfig
impl UnwindSafe for CommandConfig
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