pub struct CodeGraphState {
pub nodes: RecordBatch,
pub edges: RecordBatch,
pub workspace_root: PathBuf,
pub graph_dir: PathBuf,
pub cargo_path: PathBuf,
pub sync_publisher: Option<CodeGraphPublisher>,
}Expand description
Mutable state for the CodeGraph NATS service.
Fields§
§nodes: RecordBatchAll code nodes as a single Arrow RecordBatch.
edges: RecordBatchAll code edges as a single Arrow RecordBatch.
workspace_root: PathBufWorkspace root for running cargo commands.
graph_dir: PathBufDirectory where nodes.parquet / edges.parquet live.
cargo_path: PathBufAbsolute path to cargo binary (resolved at startup, not runtime).
sync_publisher: Option<CodeGraphPublisher>EX-3184: Optional NATS sync publisher — publishes updates for cross-agent sync.
None when running without --nats-url (offline mode).
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CodeGraphState
impl !UnwindSafe for CodeGraphState
impl Freeze for CodeGraphState
impl Send for CodeGraphState
impl Sync for CodeGraphState
impl Unpin for CodeGraphState
impl UnsafeUnpin for CodeGraphState
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