feat(src): add Clone derive to GpuCommandsThe GpuCommands enum now derives Clone, enabling it to be cloned and used in contexts such as message passing or state storage.
New Features: - Enables cloning of GpuCommands variants for greater flexibility. Enhancements: - Improves CLI ergonomics by allowing command enum to be transmitted across async boundaries.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -55,7 +55,7 @@ pub enum Commands {
|
|||||||
Daemon,
|
Daemon,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Subcommand, Debug)]
|
#[derive(Subcommand, Debug, Clone)]
|
||||||
pub enum GpuCommands {
|
pub enum GpuCommands {
|
||||||
/// Query the current graphics mode
|
/// Query the current graphics mode
|
||||||
Query,
|
Query,
|
||||||
|
|||||||
Reference in new issue
Block a user