Struct uem_reader::commands::reader::UemCommandsReader
source · pub struct UemCommandsReader<'a> { /* private fields */ }Expand description
Structure for commands controlling a reader itself
Implementations§
source§impl<'a> UemCommandsReader<'a>
impl<'a> UemCommandsReader<'a>
sourcepub fn beep(&mut self, count: i32) -> Result<(), UemError>
pub fn beep(&mut self, count: i32) -> Result<(), UemError>
Make signals of specific count
Example
ⓘ
// Beep 5 times using command grouping objects as separate variables
let mut uem_cmds = uem_reader.commands();
let mut uem_cmds_reader = uem_cmds.reader();
if uem_cmds_reader.beep(5).is_err() {
return;
}