We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ddc236 commit cacdaacCopy full SHA for cacdaac
src/adapter/adapter_trait.rs
@@ -26,7 +26,12 @@ use webthings_gateway_ipc_types::DeviceWithoutId;
26
/// struct ExampleAdapter;
27
///
28
/// #[async_trait]
29
-/// impl Adapter for ExampleAdapter {}
+/// impl Adapter for ExampleAdapter {
30
+/// async fn on_remove_device(&mut self, device_id: String) -> Result<(), String> {
31
+/// log::debug!("Device {} removed", device_id);
32
+/// Ok(())
33
+/// }
34
35
36
/// impl ExampleAdapter {
37
/// # pub fn new(adapter_handle: AdapterHandle) -> Self {
0 commit comments