#[non_exhaustive]pub struct TriggerSettings {
pub mode: Option<String>,
pub source: Option<String>,
pub slope: Option<String>,
pub level: Option<f64>,
pub holdoff: Option<f64>,
}Expand description
The trigger as the instrument has it, from Scope::trigger. Fields are
the instrument’s own spellings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: Option<String>Capture mode (auto, normal, single, …).
source: Option<String>Trigger source.
slope: Option<String>Trigger slope.
level: Option<f64>Trigger level (V).
holdoff: Option<f64>Trigger holdoff (s), when the scope’s daemon reports one.
Trait Implementations§
Source§impl Clone for TriggerSettings
impl Clone for TriggerSettings
Source§impl Debug for TriggerSettings
impl Debug for TriggerSettings
Source§impl<'de> Deserialize<'de> for TriggerSettings
impl<'de> Deserialize<'de> for TriggerSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TriggerSettings
impl PartialEq for TriggerSettings
impl StructuralPartialEq for TriggerSettings
Auto Trait Implementations§
impl Freeze for TriggerSettings
impl RefUnwindSafe for TriggerSettings
impl Send for TriggerSettings
impl Sync for TriggerSettings
impl Unpin for TriggerSettings
impl UnsafeUnpin for TriggerSettings
impl UnwindSafe for TriggerSettings
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