pub struct UpdateRunner {
pub run_update: Arc<dyn Fn(Option<PathBuf>, String, Vec<String>) -> RunnerFut<RunnerUpdateResult> + Send + Sync>,
pub refresh: Arc<dyn Fn(Option<PathBuf>, String) -> RunnerFut<RunnerRefreshResult> + Send + Sync>,
}Expand description
The CLI surface one update batch runs through; injectable so tests
drive a whole batch without shelling out. The production instance
wraps the claude subprocess calls.
Fields§
§run_update: Arc<dyn Fn(Option<PathBuf>, String, Vec<String>) -> RunnerFut<RunnerUpdateResult> + Send + Sync>§refresh: Arc<dyn Fn(Option<PathBuf>, String) -> RunnerFut<RunnerRefreshResult> + Send + Sync>Implementations§
Source§impl UpdateRunner
impl UpdateRunner
Trait Implementations§
Source§impl Clone for UpdateRunner
impl Clone for UpdateRunner
Auto Trait Implementations§
impl !RefUnwindSafe for UpdateRunner
impl !UnwindSafe for UpdateRunner
impl Freeze for UpdateRunner
impl Send for UpdateRunner
impl Sync for UpdateRunner
impl Unpin for UpdateRunner
impl UnsafeUnpin for UpdateRunner
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