cros_async/sys/linux/executor.rs
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
5use serde::Deserialize;
6use 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")]
13pub enum ExecutorKindSys {
14 Uring,
15 // For command-line parsing, user-friendly "epoll" is chosen instead of fd.
16 #[serde(rename = "epoll")]
17 Fd,
18}