#[repr(C)]pub enum PamojaControlKind {
Setpoint = 0,
Level = 1,
Surge = 2,
Monitor = 3,
Custom = 4,
}Expand description
Which control policy a profile applies to each reading.
Variants§
Setpoint = 0
Hold a reading near a setpoint by switching an output on and off.
Level = 1
Watch a falling level and warn before it reaches empty.
Surge = 2
Warn when a reading changes faster than a limit.
Monitor = 3
Report readings only, with no output and no alerts.
Custom = 4
A kind the library does not ship, decided by code the host registers; its
name and parameters come from pamoja_profile_control_kind and
pamoja_profile_control_params_json.
Trait Implementations§
Source§impl Clone for PamojaControlKind
impl Clone for PamojaControlKind
Source§fn clone(&self) -> PamojaControlKind
fn clone(&self) -> PamojaControlKind
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 PamojaControlKind
Source§impl Debug for PamojaControlKind
impl Debug for PamojaControlKind
impl Eq for PamojaControlKind
Source§impl PartialEq for PamojaControlKind
impl PartialEq for PamojaControlKind
impl StructuralPartialEq for PamojaControlKind
Auto Trait Implementations§
impl Freeze for PamojaControlKind
impl RefUnwindSafe for PamojaControlKind
impl Send for PamojaControlKind
impl Sync for PamojaControlKind
impl Unpin for PamojaControlKind
impl UnsafeUnpin for PamojaControlKind
impl UnwindSafe for PamojaControlKind
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