pub struct BatchWorkspace { /* private fields */ }Implementations§
Source§impl BatchWorkspace
impl BatchWorkspace
Sourcepub async fn locate_batch_files(
self: &Arc<Self>,
index: &BatchIndex,
) -> Result<Option<BatchFileTriple>, BatchWorkspaceError>
pub async fn locate_batch_files( self: &Arc<Self>, index: &BatchIndex, ) -> Result<Option<BatchFileTriple>, BatchWorkspaceError>
Finds and verifies the batch files associated with the given BatchIndex in the base directory.
Ensures that at most one file of each type exists.
Source§impl BatchWorkspace
impl BatchWorkspace
Sourcepub async fn find_existing_batch_file_indices(
self: &Arc<Self>,
) -> Result<HashSet<BatchIndex>, BatchWorkspaceError>
pub async fn find_existing_batch_file_indices( self: &Arc<Self>, ) -> Result<HashSet<BatchIndex>, BatchWorkspaceError>
Scans the directory and extracts indices from filenames matching the pattern.
Source§impl BatchWorkspace
impl BatchWorkspace
pub fn workdir(&self) -> &PathBuf
pub fn logdir(&self) -> &PathBuf
pub fn done_dir(&self) -> &PathBuf
pub fn failed_items_dir(&self) -> &PathBuf
pub fn target_dir(&self) -> &PathBuf
pub fn failed_json_repairs_dir(&self) -> &PathBuf
pub fn temp_dir(&self) -> &Option<TempDir>
pub fn temporary(&self) -> &bool
Source§impl BatchWorkspace
impl BatchWorkspace
pub async fn find_existing_triple_with_given_index( self: Arc<BatchWorkspace>, index: &BatchIndex, ) -> Result<BatchFileTriple, BatchWorkspaceError>
pub async fn new_in( product_root: impl AsRef<Path>, ) -> Result<Arc<Self>, BatchWorkspaceError>
pub async fn new_temp() -> Result<Arc<Self>, BatchWorkspaceError>
pub async fn new_mock() -> Result<Arc<Self>, BatchWorkspaceError>
pub fn get_target_directory_files(&self) -> Vec<PathBuf>
pub fn batch_expansion_error_log_filename( &self, batch_idx: &BatchIndex, ) -> PathBuf
Source§impl BatchWorkspace
impl BatchWorkspace
pub async fn gather_all_batch_triples( self: &Arc<Self>, ) -> Result<Vec<BatchFileTriple>, BatchWorkspaceError>
Trait Implementations§
Source§impl Debug for BatchWorkspace
impl Debug for BatchWorkspace
Source§impl GetDoneDirectory for BatchWorkspace
impl GetDoneDirectory for BatchWorkspace
fn get_done_directory(&self) -> &PathBuf
Source§impl GetErrorFilenameAtIndex for BatchWorkspace
impl GetErrorFilenameAtIndex for BatchWorkspace
fn error_filename(&self, batch_idx: &BatchIndex) -> PathBuf
Source§impl GetFailedItemsDir for BatchWorkspace
impl GetFailedItemsDir for BatchWorkspace
fn failed_items_dir(&self) -> PathBuf
Source§impl GetFailedJsonRepairsDir for BatchWorkspace
impl GetFailedJsonRepairsDir for BatchWorkspace
fn failed_json_repairs_dir(&self) -> PathBuf
Source§impl GetInputFilenameAtIndex for BatchWorkspace
impl GetInputFilenameAtIndex for BatchWorkspace
fn input_filename(&self, batch_idx: &BatchIndex) -> PathBuf
Source§impl GetMetadataFilenameAtIndex for BatchWorkspace
impl GetMetadataFilenameAtIndex for BatchWorkspace
fn metadata_filename(&self, batch_idx: &BatchIndex) -> PathBuf
Source§impl GetOutputFilenameAtIndex for BatchWorkspace
impl GetOutputFilenameAtIndex for BatchWorkspace
fn output_filename(&self, batch_idx: &BatchIndex) -> PathBuf
Source§impl GetTextStoragePath for BatchWorkspace
impl GetTextStoragePath for BatchWorkspace
fn text_storage_path(&self, batch_idx: &BatchIndex) -> PathBuf
Source§impl GetTokenExpansionPath for BatchWorkspace
impl GetTokenExpansionPath for BatchWorkspace
fn token_expansion_path( &self, token_name: &CamelCaseTokenWithComment, ) -> PathBuf
Source§impl PartialEq for BatchWorkspace
impl PartialEq for BatchWorkspace
impl BatchWorkspaceInterface for BatchWorkspace
impl Eq for BatchWorkspace
impl Send for BatchWorkspace
impl Sync for BatchWorkspace
Auto Trait Implementations§
impl Freeze for BatchWorkspace
impl RefUnwindSafe for BatchWorkspace
impl Unpin for BatchWorkspace
impl UnwindSafe for BatchWorkspace
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