pub struct ManagementHandle { /* private fields */ }Expand description
The read-only, path-driven operations a management run’s per-row work needs
(crates/repon/src/management.rs’s own run_one_record), cloned out of
Core::management_handle rather than borrowed from a live Core: Send + 'static, so
a caller can move it onto a background thread the way Core::run_action’s own fan-out
thread already moves its Arc<RwLock<Table>> clone there. Grants none of Core’s other
state (action_running, action_control, the clock thread): a management run is a
distinct concern from the one fan-out those track, and this handle’s own methods touch
only the table, exactly as Core::run_action_for_entity_blocking already does.
Implementations§
Source§impl ManagementHandle
impl ManagementHandle
Sourcepub fn worktree_admin_dir(&self, key: &EntityKey) -> Result<PathBuf, ProbeError>
pub fn worktree_admin_dir(&self, key: &EntityKey) -> Result<PathBuf, ProbeError>
Identical to Core::worktree_admin_dir, against this handle’s own table clone.
Sourcepub fn linked_worktree_paths(
&self,
key: &EntityKey,
) -> Result<Vec<PathBuf>, ProbeError>
pub fn linked_worktree_paths( &self, key: &EntityKey, ) -> Result<Vec<PathBuf>, ProbeError>
Identical to Core::linked_worktree_paths, against this handle’s own table clone.
Sourcepub fn ignored_directories_for_deletion(
&self,
path: &Path,
) -> Result<Vec<PathBuf>, ProbeError>
pub fn ignored_directories_for_deletion( &self, path: &Path, ) -> Result<Vec<PathBuf>, ProbeError>
Identical to Core::ignored_directories_for_deletion, against this handle’s own
table clone.
Sourcepub fn attempt_auto_update(&self, key: &EntityKey) -> AutoUpdateAttempt
pub fn attempt_auto_update(&self, key: &EntityKey) -> AutoUpdateAttempt
Identical to Core::attempt_auto_update.
Sourcepub fn run_action_for_entity_blocking(
&self,
action: &ActionSpec,
key: &EntityKey,
) -> Option<ActionReceipt>
pub fn run_action_for_entity_blocking( &self, action: &ActionSpec, key: &EntityKey, ) -> Option<ActionReceipt>
Identical to Core::run_action_for_entity_blocking, against this handle’s own
table clone rather than a live Core.
Trait Implementations§
Source§impl Clone for ManagementHandle
impl Clone for ManagementHandle
Source§fn clone(&self) -> ManagementHandle
fn clone(&self) -> ManagementHandle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ManagementHandle
impl RefUnwindSafe for ManagementHandle
impl Send for ManagementHandle
impl Sync for ManagementHandle
impl Unpin for ManagementHandle
impl UnsafeUnpin for ManagementHandle
impl UnwindSafe for ManagementHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more