pub enum CommandValueSrc {
Literal(i64),
FromNode(String),
}Expand description
Where a <Command> takes the value it writes.
GenICam Standard v2.1.1 §2.8.8: the command value “is written into a node
which is referenced to by a pValue element”, and it “can alternatively also
be taken from pCommandValue”. One of the two is required — the standard’s
table of defaults (§3.2) gives none — so a <Command> declaring neither is
skipped rather than given an invented value.
Variants§
Literal(i64)
<CommandValue>: a constant.
FromNode(String)
<pCommandValue>: the node whose value is written, read each time the
command executes. Hikrobot’s UserSetSave takes the selected user
set’s index this way.
Trait Implementations§
Source§impl Clone for CommandValueSrc
impl Clone for CommandValueSrc
Source§fn clone(&self) -> CommandValueSrc
fn clone(&self) -> CommandValueSrc
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 moreSource§impl Debug for CommandValueSrc
impl Debug for CommandValueSrc
Source§impl<'de> Deserialize<'de> for CommandValueSrc
impl<'de> Deserialize<'de> for CommandValueSrc
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandValueSrc, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandValueSrc, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommandValueSrc
Source§impl PartialEq for CommandValueSrc
impl PartialEq for CommandValueSrc
Source§impl Serialize for CommandValueSrc
impl Serialize for CommandValueSrc
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CommandValueSrc
Auto Trait Implementations§
impl Freeze for CommandValueSrc
impl RefUnwindSafe for CommandValueSrc
impl Send for CommandValueSrc
impl Sync for CommandValueSrc
impl Unpin for CommandValueSrc
impl UnsafeUnpin for CommandValueSrc
impl UnwindSafe for CommandValueSrc
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