pub struct MemoryCollector {
pub global_shared_dir: Option<PathBuf>,
pub global_workflow_dir: Option<PathBuf>,
pub cwd_memory_dir: Option<PathBuf>,
pub workflow_mode: MemoryMode,
pub local_enabled: bool,
pub disabled: bool,
}Expand description
Run-time collector for memory entries, similar to ResourceCollector.
Fields§
§global_workflow_dir: Option<PathBuf>§cwd_memory_dir: Option<PathBuf>§workflow_mode: MemoryModeWorkflow-level memory mode (from .zwf file).
local_enabled: boolWhether project-local memory is enabled globally.
disabled: boolWhen true, all tiers are skipped (e.g., --no-memory flag).
Implementations§
Source§impl MemoryCollector
impl MemoryCollector
Sourcepub fn from_env(
workflow_name: &str,
workflow_mode: MemoryMode,
config: &ZigConfig,
disabled: bool,
) -> Self
pub fn from_env( workflow_name: &str, workflow_mode: MemoryMode, config: &ZigConfig, disabled: bool, ) -> Self
Build a collector from the environment.
Sourcepub fn collect_for_step(
&self,
step_memory: Option<&str>,
) -> Result<Vec<(PathBuf, String, MemoryEntry)>, ZigError>
pub fn collect_for_step( &self, step_memory: Option<&str>, ) -> Result<Vec<(PathBuf, String, MemoryEntry)>, ZigError>
Collect memory entries for a specific step, respecting mode overrides.
Returns (abs_path, id_string, entry) tuples for rendering.
Auto Trait Implementations§
impl Freeze for MemoryCollector
impl RefUnwindSafe for MemoryCollector
impl Send for MemoryCollector
impl Sync for MemoryCollector
impl Unpin for MemoryCollector
impl UnsafeUnpin for MemoryCollector
impl UnwindSafe for MemoryCollector
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