pub struct TriggerboxOptions {
pub device_path: String,
pub query_dt: Duration,
pub assert_device_name: NameType,
pub max_acceptable_measurement_error: Duration,
pub sleep_dur: Duration,
}Expand description
Options for run_triggerbox.
Fields§
§device_path: StringPath of the serial device.
query_dt: DurationInterval between clock measurements.
assert_device_name: NameTypeIf given, the required device name.
max_acceptable_measurement_error: DurationClock measurements which take longer than this are discarded.
sleep_dur: DurationTime to wait for the device to reset after opening it.
Trait Implementations§
Source§impl Clone for TriggerboxOptions
impl Clone for TriggerboxOptions
Auto Trait Implementations§
impl Freeze for TriggerboxOptions
impl RefUnwindSafe for TriggerboxOptions
impl Send for TriggerboxOptions
impl Sync for TriggerboxOptions
impl Unpin for TriggerboxOptions
impl UnsafeUnpin for TriggerboxOptions
impl UnwindSafe for TriggerboxOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.