pub struct AndAlarmExpression {
pub expression: Vec<Box<dyn AlarmExpressionTrait>>,
}Expand description
A data object type that links multiple alarm expressions with AND operators.
§How to access
AlarmManager::default_expression→AndAlarmExpressionAlarm::reconfigure_alarm(spec).expression→AndAlarmExpressionAlarmManager::create_alarm(spec).expression→AndAlarmExpression
Fields§
§expression: Vec<Box<dyn AlarmExpressionTrait>>List of alarm expressions that define the overall status of the alarm.
- The state of the alarm expression is gray if all subexpressions are gray. Otherwise, gray subexpressions are ignored.
- The state is red if all subexpressions are red.
- Otherwise, the state is yellow if all subexpressions are red or yellow.
- Otherwise, the state of the alarm expression is green.
Trait Implementations§
Source§impl Debug for AndAlarmExpression
impl Debug for AndAlarmExpression
Source§impl Deserialize for AndAlarmExpression
impl Deserialize for AndAlarmExpression
Source§impl VimObjectTrait for AndAlarmExpression
impl VimObjectTrait for AndAlarmExpression
fn as_vim_object_ref<'a>(&'a self) -> &'a dyn VimObjectTrait
fn data_type(&self) -> StructType
impl AlarmExpressionTrait for AndAlarmExpression
impl DataObjectTrait for AndAlarmExpression
Auto Trait Implementations§
impl Freeze for AndAlarmExpression
impl !RefUnwindSafe for AndAlarmExpression
impl Send for AndAlarmExpression
impl Sync for AndAlarmExpression
impl Unpin for AndAlarmExpression
impl UnsafeUnpin for AndAlarmExpression
impl !UnwindSafe for AndAlarmExpression
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