xref: /aosp_15_r20/external/crosvm/cros_async/src/sys/linux/executor.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1 // Copyright 2020 The ChromiumOS Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 use serde::Deserialize;
6 use serde::Serialize;
7 
8 /// An enum to express the kind of the backend of `Executor`
9 #[derive(
10     Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, serde_keyvalue::FromKeyValues,
11 )]
12 #[serde(deny_unknown_fields, rename_all = "kebab-case")]
13 pub enum ExecutorKindSys {
14     Uring,
15     // For command-line parsing, user-friendly "epoll" is chosen instead of fd.
16     #[serde(rename = "epoll")]
17     Fd,
18 }
19