pub struct WaitForLevelOptions {
pub timeout: Option<f64>,
pub scan_rate: Option<u32>,
pub scans_per_read: Option<u32>,
pub poll_interval: Option<f64>,
}Expand description
Advanced options for Gpio::wait_for_level_with. All fields are
optional; None uses the box-side defaults.
Fields§
§timeout: Option<f64>Give up after this many seconds. None waits forever (the client
HTTP timeout is dropped entirely, matching lager gpi --wait-for
without --timeout).
scan_rate: Option<u32>LabJack streaming sample rate in Hz (advanced).
scans_per_read: Option<u32>LabJack scans per read batch (advanced).
poll_interval: Option<f64>Poll interval in seconds for non-streaming drivers (advanced).
Trait Implementations§
Source§impl Clone for WaitForLevelOptions
impl Clone for WaitForLevelOptions
Source§fn clone(&self) -> WaitForLevelOptions
fn clone(&self) -> WaitForLevelOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WaitForLevelOptions
Source§impl Debug for WaitForLevelOptions
impl Debug for WaitForLevelOptions
Source§impl Default for WaitForLevelOptions
impl Default for WaitForLevelOptions
Source§fn default() -> WaitForLevelOptions
fn default() -> WaitForLevelOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WaitForLevelOptions
impl RefUnwindSafe for WaitForLevelOptions
impl Send for WaitForLevelOptions
impl Sync for WaitForLevelOptions
impl Unpin for WaitForLevelOptions
impl UnsafeUnpin for WaitForLevelOptions
impl UnwindSafe for WaitForLevelOptions
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