pub struct PredicateRefs {
pub p_is_implemented: Option<String>,
pub p_is_available: Option<String>,
pub p_is_locked: Option<String>,
}Expand description
References to predicate provider nodes used for runtime gating.
GenICam’s pIsImplemented, pIsAvailable and pIsLocked each point at
another node (typically an Integer, Boolean or IntSwissKnife) whose current
value gates whether a feature is implemented, accessible, or writable.
These three references are shared by most node variants, so we collect them
into one struct to keep the variant fields small.
All three fields are optional; a node with no predicates has
PredicateRefs::default(). Serde fields use the GenICam XML spelling so
round-trip JSON matches the XML attribute names.
Fields§
§p_is_implemented: Option<String>Name of a node evaluating to non-zero iff the feature is implemented.
p_is_available: Option<String>Name of a node evaluating to non-zero iff the feature is accessible now.
p_is_locked: Option<String>Name of a node evaluating to non-zero iff the feature is locked (RW→RO).
Implementations§
Source§impl PredicateRefs
impl PredicateRefs
Trait Implementations§
Source§impl Clone for PredicateRefs
impl Clone for PredicateRefs
Source§fn clone(&self) -> PredicateRefs
fn clone(&self) -> PredicateRefs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PredicateRefs
impl Debug for PredicateRefs
Source§impl Default for PredicateRefs
impl Default for PredicateRefs
Source§fn default() -> PredicateRefs
fn default() -> PredicateRefs
Source§impl<'de> Deserialize<'de> for PredicateRefs
impl<'de> Deserialize<'de> for PredicateRefs
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>,
Source§impl PartialEq for PredicateRefs
impl PartialEq for PredicateRefs
Source§fn eq(&self, other: &PredicateRefs) -> bool
fn eq(&self, other: &PredicateRefs) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PredicateRefs
impl Serialize for PredicateRefs
impl Eq for PredicateRefs
impl StructuralPartialEq for PredicateRefs
Auto Trait Implementations§
impl Freeze for PredicateRefs
impl RefUnwindSafe for PredicateRefs
impl Send for PredicateRefs
impl Sync for PredicateRefs
impl Unpin for PredicateRefs
impl UnsafeUnpin for PredicateRefs
impl UnwindSafe for PredicateRefs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.