pub struct ExecutionContext { /* private fields */ }Expand description
Semantic execution state for embeddable Heddle operations.
Carries only resolved values: the caller (usually the CLI) resolves user config before construction, so this crate never reads config files.
Implementations§
Source§impl ExecutionContext
impl ExecutionContext
pub fn builder() -> ExecutionContextBuilder
pub fn require_repo(&self) -> Result<&Repository, HeddleError>
pub fn repo(&self) -> Option<&Repository>
pub fn start_path(&self) -> Option<&Path>
Sourcepub fn principal_fallback(&self) -> Option<(&str, &str)>
pub fn principal_fallback(&self) -> Option<(&str, &str)>
User-config principal fallback as an optional (name, email) pair.
Sourcepub fn fsmonitor_mode(&self) -> FsMonitorMode
pub fn fsmonitor_mode(&self) -> FsMonitorMode
Resolved fsmonitor mode for worktree-status hot paths.
pub fn worktree_status_options(&self) -> WorktreeStatusOptions
pub fn progress(&self) -> &dyn ProgressSink
pub fn warnings(&self) -> &dyn WarningSink
pub fn verbosity(&self) -> Verbosity
pub fn op_id(&self) -> Option<&str>
Auto Trait Implementations§
impl !Freeze for ExecutionContext
impl !RefUnwindSafe for ExecutionContext
impl !UnwindSafe for ExecutionContext
impl Send for ExecutionContext
impl Sync for ExecutionContext
impl Unpin for ExecutionContext
impl UnsafeUnpin for ExecutionContext
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