Skip to main content

SegmentSpawn

Type Alias SegmentSpawn 

Source
pub type SegmentSpawn = Arc<dyn Fn(SegmentCapture, PathBuf, Arc<AtomicI64>, Arc<AtomicBool>, Arc<Mutex<TimelapseStatus>>) -> JoinHandle<()> + Send + Sync>;
Expand description

Spawns the dense-stream segment worker for ONE camera, returning its task handle. Like ParkSpawn but the worker also reads the live print layer (the Arc<AtomicI64> the lifecycle loop feeds from MQTT layer_num), so it can segment the stream per layer. Injected so the slot lifecycle is unit-tested with a fake worker; production runs the real ffmpeg supervisor (crate::park::run_segment_camera).

Aliased Typeยง

pub struct SegmentSpawn { /* private fields */ }