pub struct DefaultActionExecutor;Expand description
默认动作执行器
执行经 PolicyEngine 校验后的 AuthorizedAction。 当前为骨架实现: 记录操作日志, 返回占位结果。 后续将对接真实 syscall:
- PreWarmProcess → fork zygote, 调整 cgroup
- PrefetchFile → posix_fadvise(POSIX_FADV_WILLNEED)
- KeepAlive → /proc/pid/oom_score_adj 调整
- ReleaseMemory → /proc/pid/reclaim 或 process_madvise(MADV_COLD)
Trait Implementations§
Source§impl ActionExecutor for DefaultActionExecutor
impl ActionExecutor for DefaultActionExecutor
Source§fn execute(&self, authorized: &AuthorizedAction) -> ActionResult
fn execute(&self, authorized: &AuthorizedAction) -> ActionResult
执行单个动作
Source§fn execute_batch(&self, actions: &[AuthorizedAction]) -> Vec<ActionResult>
fn execute_batch(&self, actions: &[AuthorizedAction]) -> Vec<ActionResult>
批量执行
Auto Trait Implementations§
impl Freeze for DefaultActionExecutor
impl RefUnwindSafe for DefaultActionExecutor
impl Send for DefaultActionExecutor
impl Sync for DefaultActionExecutor
impl Unpin for DefaultActionExecutor
impl UnsafeUnpin for DefaultActionExecutor
impl UnwindSafe for DefaultActionExecutor
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