Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/cros_async/src/sys/linux/executor.rs
5394 views
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
20