pub enum PtzEvent {
MoveStart {
ts: MonotonicTs,
},
MoveStop {
ts: MonotonicTs,
},
PresetRecall {
preset_id: u32,
ts: MonotonicTs,
},
}Expand description
A discrete PTZ control event.
Models push-based PTZ control commands that the camera may receive
externally (from an operator, a tour scheduler, or an API call).
These supplement the polling-based PtzTelemetry with explicit
causal information about why the camera moved.
Providers include these in MotionReport::ptz_events
when they have access to a PTZ command stream (e.g., ONVIF Events).
Variants§
MoveStart
A continuous move started (pan/tilt/zoom speeds set).
Fields
§
ts: MonotonicTsTimestamp of the command.
MoveStop
A continuous move stopped.
Fields
§
ts: MonotonicTsTimestamp of the command.
PresetRecall
Camera moved to a preset position.
Trait Implementations§
impl StructuralPartialEq for PtzEvent
Auto Trait Implementations§
impl Freeze for PtzEvent
impl RefUnwindSafe for PtzEvent
impl Send for PtzEvent
impl Sync for PtzEvent
impl Unpin for PtzEvent
impl UnsafeUnpin for PtzEvent
impl UnwindSafe for PtzEvent
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