pub struct ApplicationState { /* private fields */ }Expand description
Application State: Domain-level resource tracking
Implementations§
Source§impl ApplicationState
impl ApplicationState
Sourcepub async fn resource_exists(&self, resource_id: &str) -> bool
pub async fn resource_exists(&self, resource_id: &str) -> bool
Check if a resource exists
Sourcepub async fn mark_resource_exists(&self, resource_id: &str)
pub async fn mark_resource_exists(&self, resource_id: &str)
Mark a resource as existing
Sourcepub async fn mark_resource_deleted(&self, resource_id: &str)
pub async fn mark_resource_deleted(&self, resource_id: &str)
Mark a resource as deleted
Sourcepub async fn update_file(&self, path: PathBuf, content_hash: String)
pub async fn update_file(&self, path: PathBuf, content_hash: String)
Update file status
Sourcepub async fn get_all_files(&self) -> HashMap<PathBuf, FileStatus>
pub async fn get_all_files(&self) -> HashMap<PathBuf, FileStatus>
Get all file statuses
Sourcepub async fn invalidate_artifact(&self, artifact_id: &str)
pub async fn invalidate_artifact(&self, artifact_id: &str)
Invalidate a build artifact
Sourcepub async fn update_git_state(&self, state: GitState)
pub async fn update_git_state(&self, state: GitState)
Update git state
Sourcepub async fn get_git_state(&self) -> GitState
pub async fn get_git_state(&self) -> GitState
Get current git state
Sourcepub async fn unlock_file(&self, path: &PathBuf)
pub async fn unlock_file(&self, path: &PathBuf)
Release file lock
Sourcepub async fn mark_files_clean(&self)
pub async fn mark_files_clean(&self)
Mark all source files as clean after successful build
Sourcepub async fn record_artifact(&self, artifact_id: String, source_hash: String)
pub async fn record_artifact(&self, artifact_id: String, source_hash: String)
Record a build artifact
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ApplicationState
impl !RefUnwindSafe for ApplicationState
impl Send for ApplicationState
impl Sync for ApplicationState
impl Unpin for ApplicationState
impl UnsafeUnpin for ApplicationState
impl !UnwindSafe for ApplicationState
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