pub struct TimelapseStatus {
pub running: bool,
pub mode: &'static str,
pub cameras: Vec<String>,
pub every: u64,
pub interval_ms: Option<u64>,
pub frames: u64,
pub failures: u64,
pub current_layer: Option<i64>,
pub out_dir: Option<String>,
pub last_error: Option<String>,
}Expand description
Live capture status for one run (smooth or plain), surfaced by
GET /api/timelapse.
Fields§
§running: bool§mode: &'static str"smooth" (per-layer, park-synced) or "plain" (wall-time sampled).
cameras: Vec<String>The cameras captured in this run (one frame each per trigger). Empty when
idle. camera (singular) is kept in the JSON for the common one-cam case.
every: u64Smooth: capture every Nth layer. Plain: 0 (uses interval_ms instead).
interval_ms: Option<u64>Plain: sampling period in ms. Smooth: None (it’s layer-driven).
frames: u64Total frames written across all cameras (minus skips).
failures: u64§current_layer: Option<i64>§out_dir: Option<String>§last_error: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for TimelapseStatus
impl Clone for TimelapseStatus
Source§fn clone(&self) -> TimelapseStatus
fn clone(&self) -> TimelapseStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for TimelapseStatus
impl Default for TimelapseStatus
Source§fn default() -> TimelapseStatus
fn default() -> TimelapseStatus
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TimelapseStatus
impl RefUnwindSafe for TimelapseStatus
impl Send for TimelapseStatus
impl Sync for TimelapseStatus
impl Unpin for TimelapseStatus
impl UnsafeUnpin for TimelapseStatus
impl UnwindSafe for TimelapseStatus
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