jax_daemon/fuse/sync_events.rs
1//! Sync event types for FUSE cache invalidation
2//!
3//! These events are emitted by the sync worker when bucket state changes,
4//! allowing FUSE filesystems to invalidate their caches.
5
6use uuid::Uuid;
7
8/// Events emitted by the sync engine for FUSE integration
9#[derive(Debug, Clone)]
10pub enum SyncEvent {
11 /// A bucket's state has been updated (new manifest synced)
12 BucketUpdated { bucket_id: Uuid },
13
14 /// A specific mount should invalidate its cache
15 MountInvalidated { mount_id: Uuid },
16}
17
18/// Request from FUSE to save mount state
19#[derive(Debug, Clone)]
20pub struct SaveRequest {
21 /// Mount ID that needs saving
22 pub mount_id: Uuid,
23}