eruption_sdk/hardware.rs
1/*
2 This file is part of Eruption.
3
4 Eruption is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 Eruption is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with Eruption. If not, see <http://www.gnu.org/licenses/>.
16
17 Copyright (c) 2019-2022, The Eruption Development Team
18*/
19
20#[derive(Debug, Default, Clone)]
21pub struct Hardware {}
22
23impl Hardware {
24 pub fn new() -> Self {
25 Self {}
26 }
27}
28
29/*
30impl Default for Hardware {
31 fn default() -> Self {
32 Self {}
33 }
34}
35*/
36
37use bincode::{Decode, Encode};
38
39#[derive(Debug, Default, Clone, Encode, Decode)]
40pub struct HotplugInfo {
41 pub usb_vid: u16,
42 pub usb_pid: u16,
43}