pub struct SandboxGuard {
pub inner: Box<dyn Guard>,
pub launcher: Arc<Launcher>,
}Expand description
The write containment check in front of another guard (Loki, file hooks), which still runs after it.
Fields§
§inner: Box<dyn Guard>§launcher: Arc<Launcher>Trait Implementations§
Source§impl Guard for SandboxGuard
impl Guard for SandboxGuard
Source§fn before_shell(&self, lane: &str, command: &str) -> Option<String>
fn before_shell(&self, lane: &str, command: &str) -> Option<String>
A command of the cell on
lane: Some(reason) blocks it, “bash command was not run: {reason}”.Source§fn before_write(&self, lane: &str, path: &str, content: &str) -> Value
fn before_write(&self, lane: &str, path: &str, content: &str) -> Value
A write of the cell on
lane: {blocked, reason?, notes?} as runtime.py reads it.Source§fn guard_stats(&self) -> Vec<Value>
fn guard_stats(&self) -> Vec<Value>
Each file-hook guard’s statistics (
fileHooks.stats()), for rlm.pool.Source§fn begin_turn(&self)
fn begin_turn(&self)
A new root turn began: per-turn guard times start from zero.
Source§fn cell_started(&self, lane: &str)
fn cell_started(&self, lane: &str)
A cell on
lane is starting (after-cell checks take their baseline).Source§fn cell_ended(&self, lane: &str)
fn cell_ended(&self, lane: &str)
A cell on
lane ended (after-cell checks start in the background).Auto Trait Implementations§
impl !RefUnwindSafe for SandboxGuard
impl !UnwindSafe for SandboxGuard
impl Forget for SandboxGuard
impl Freeze for SandboxGuard
impl Move for SandboxGuard
impl Send for SandboxGuard
impl Sync for SandboxGuard
impl Unpin for SandboxGuard
impl UnsafeUnpin for SandboxGuard
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