pub struct ExecApi { /* private fields */ }Expand description
Execution management system calls.
Wraps ExecConfig for execution policy and AccessManager for
RBAC / path sandboxing enforcement.
Implementations§
Source§impl ExecApi
impl ExecApi
Sourcepub fn new(
config: SharedExecConfig,
access_manager: Arc<Mutex<AccessManager>>,
) -> Self
pub fn new( config: SharedExecConfig, access_manager: Arc<Mutex<AccessManager>>, ) -> Self
Create a new ExecApi.
Sourcepub fn config_snapshot(&self) -> ExecConfig
pub fn config_snapshot(&self) -> ExecConfig
Take a snapshot of the current execution configuration.
Returns a cloned ExecConfig so callers never hold the RwLock guard
across an await point or a long-running operation.
Sourcepub fn access_manager(&self) -> &Arc<Mutex<AccessManager>> ⓘ
pub fn access_manager(&self) -> &Arc<Mutex<AccessManager>> ⓘ
Access manager reference.
Shared config reference (for wiring into ExecTool).
Auto Trait Implementations§
impl !RefUnwindSafe for ExecApi
impl !UnwindSafe for ExecApi
impl Freeze for ExecApi
impl Send for ExecApi
impl Sync for ExecApi
impl Unpin for ExecApi
impl UnsafeUnpin for ExecApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more