pub struct Device {Show 13 fields
pub device_id: String,
pub com: String,
pub uuid: String,
pub supplier: String,
pub manufacturer: String,
pub vid: u16,
pub pid: u16,
pub serial_number: String,
pub product_name: String,
pub state: usize,
pub sub_device: HashMap<String, SubDevice>,
pub rate: u32,
pub reconnect: usize,
}Expand description
主设备
Fields§
§device_id: String设备id
com: String端口地址
uuid: String全局唯一ID
supplier: String供应商
manufacturer: String制造商
vid: u16生产厂商ID
pid: u16产品ID
serial_number: String序列号
product_name: String产品名称
state: usize连接状态
sub_device: HashMap<String, SubDevice>子设备
rate: u32波特率
reconnect: usize重连次数
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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