aboutsummaryrefslogtreecommitdiff
path: root/src/command_policy.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2026-01-20 15:06:41 +0000
committerdiogo464 <[email protected]>2026-01-20 15:06:41 +0000
commit18cf7f77b0d1c93d9b24f1ba43183a81e3e5a81e (patch)
treed4352b08f87dd51c4eddb2fd300cb2be13bd4e50 /src/command_policy.rs
parent74e0f4ca0b0054e3317826f2af0932712d965671 (diff)
parent8466e8720856786833099580931e7cc77d89d122 (diff)
Merge branch 'main' into embassy-gitembassy-git
Diffstat (limited to 'src/command_policy.rs')
-rw-r--r--src/command_policy.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/command_policy.rs b/src/command_policy.rs
index e5859bb..a1bb3bf 100644
--- a/src/command_policy.rs
+++ b/src/command_policy.rs
@@ -63,8 +63,7 @@
63/// # } 63/// # }
64/// # async fn turn_on_motor() -> Result<(), ()> { Ok(()) } 64/// # async fn turn_on_motor() -> Result<(), ()> { Ok(()) }
65/// ``` 65/// ```
66#[derive(Debug, Clone, Copy, PartialEq, Eq)] 66#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
67#[derive(Default)]
68pub enum CommandPolicy { 67pub enum CommandPolicy {
69 /// Automatically publish the entity's state when a command is received. 68 /// Automatically publish the entity's state when a command is received.
70 #[default] 69 #[default]
@@ -73,4 +72,3 @@ pub enum CommandPolicy {
73 /// Do not automatically publish state. The application must manually update the state. 72 /// Do not automatically publish state. The application must manually update the state.
74 Manual, 73 Manual,
75} 74}
76