oxios_kernel/kernel_handle/
exec_api.rs1use crate::access_manager::AccessManager;
4use crate::config::ExecConfig;
5use std::sync::Arc;
6
7pub struct ExecApi {
12 config: Arc<ExecConfig>,
13 access_manager: Arc<parking_lot::Mutex<AccessManager>>,
14}
15
16impl ExecApi {
17 pub fn new(
19 config: Arc<ExecConfig>,
20 access_manager: Arc<parking_lot::Mutex<AccessManager>>,
21 ) -> Self {
22 Self {
23 config,
24 access_manager,
25 }
26 }
27
28 pub fn config(&self) -> &ExecConfig {
30 &self.config
31 }
32
33 pub fn access_manager(&self) -> &Arc<parking_lot::Mutex<AccessManager>> {
35 &self.access_manager
36 }
37}