summaryrefslogtreecommitdiffstats
path: root/third_party/rust/devd-rs/src/data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/devd-rs/src/data.rs')
-rw-r--r--third_party/rust/devd-rs/src/data.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/rust/devd-rs/src/data.rs b/third_party/rust/devd-rs/src/data.rs
new file mode 100644
index 0000000000..52084362e5
--- /dev/null
+++ b/third_party/rust/devd-rs/src/data.rs
@@ -0,0 +1,9 @@
+pub use std::collections::BTreeMap;
+
+#[derive(Debug, Clone, PartialEq)]
+pub enum Event {
+ Notify { system: String, subsystem: String, kind: String, data: BTreeMap<String, String> },
+ Attach { dev: String, parent: BTreeMap<String, String>, location: String },
+ Detach { dev: String, parent: BTreeMap<String, String>, location: String },
+ Nomatch { parent: BTreeMap<String, String>, location: String },
+}