pub struct PresentContext {
pub root: Option<PathBuf>,
pub sandbox: Option<String>,
pub network: String,
pub file_text: Option<String>,
}Expand description
What only the live run knows.
Fields§
§root: Option<PathBuf>The worktree, to read the file a write or edit changes.
sandbox: Option<String>The sandbox mechanism (Seatbelt, Landlock+seccomp); None: off.
network: StringWhat a command’s network is without asking (none, loopback).
file_text: Option<String>The file’s text, given instead of read from root (a saved attempt’s).
Trait Implementations§
Source§impl Clone for PresentContext
impl Clone for PresentContext
Source§impl Debug for PresentContext
impl Debug for PresentContext
Source§impl Default for PresentContext
impl Default for PresentContext
impl Eq for PresentContext
Source§impl PartialEq for PresentContext
impl PartialEq for PresentContext
impl StructuralPartialEq for PresentContext
Auto Trait Implementations§
impl Freeze for PresentContext
impl RefUnwindSafe for PresentContext
impl Send for PresentContext
impl Sync for PresentContext
impl Unpin for PresentContext
impl UnsafeUnpin for PresentContext
impl UnwindSafe for PresentContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.