pub struct DeviceInfo {
pub name: String,
pub device_type: String,
pub device_class: String,
pub is_connected: bool,
pub is_reading: bool,
pub is_gpi_trigger_on: bool,
pub can_print: bool,
pub to_print: usize,
pub has_serial_number: bool,
pub serial_number: String,
pub connect_instruction: String,
pub current_config: HashMap<String, Value>,
}Expand description
Snapshot of device state (does not hold a reference to the device).
Fields§
§name: String§device_type: String§device_class: String§is_connected: bool§is_reading: bool§is_gpi_trigger_on: bool§can_print: bool§to_print: usize§has_serial_number: bool§serial_number: String§connect_instruction: String§current_config: HashMap<String, Value>Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
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 DeviceInfo
impl Debug for DeviceInfo
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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