pub struct Command { /* private fields */ }Expand description
A command which can be executed on an Optolink connection.
Implementations§
Source§impl Command
impl Command
Sourcepub fn access_mode(&self) -> AccessMode
pub fn access_mode(&self) -> AccessMode
Get the command’s access mode.
Sourcepub fn block_count(&self) -> Option<usize>
pub fn block_count(&self) -> Option<usize>
Returns the command block count.
Sourcepub fn lower_bound(&self) -> Option<f64>
pub fn lower_bound(&self) -> Option<f64>
Returns the lower bound for the command value.
Sourcepub fn upper_bound(&self) -> Option<f64>
pub fn upper_bound(&self) -> Option<f64>
Returns the upper bound for the command value.
Sourcepub fn mapping(&self) -> Option<&Map<i32, &'static str>>
pub fn mapping(&self) -> Option<&Map<i32, &'static str>>
Returns the mapping for the command value.
Sourcepub fn deserialize(&self, bytes: &[u8]) -> Result<Value, Error>
pub fn deserialize(&self, bytes: &[u8]) -> Result<Value, Error>
Deserializes the command value from bytes.