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 hosted_principal(&self) -> Option<(&str, &str)>
pub fn hosted_principal(&self) -> Option<(&str, &str)>
Hosted-account principal derived from a local login, used only when no local principal is configured.
Sourcepub fn hosted_account_unclaimed(&self) -> bool
pub fn hosted_account_unclaimed(&self) -> bool
Whether local hosted state identifies an account that still needs its human claim ceremony before it can supply accountable attribution.
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
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