pub struct Ptz<'rx> { /* private fields */ }Expand description
Pan, tilt, zoom, focus, white balance and exposure control of the source a
Receiver is connected to, from Receiver::ptz.
A value outside its range, or not finite, is refused with
Error::InvalidInput before anything is sent. A command the SDK does
not send is reported as Error::NativeOperationFailed. Commands return
Error::NotConnected during a local connection change on Standard Windows;
see the waiting contract.
Implementations§
Source§impl Ptz<'_>
impl Ptz<'_>
Sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Whether the connected source accepts PTZ commands.
Returns false while Standard Windows is changing the connection.
Sourcepub fn store_preset(&self, preset: u8) -> Result<()>
pub fn store_preset(&self, preset: u8) -> Result<()>
Sourcepub fn zoom_speed(&self, speed: f32) -> Result<()>
pub fn zoom_speed(&self, speed: f32) -> Result<()>
Sourcepub fn focus_speed(&self, speed: f32) -> Result<()>
pub fn focus_speed(&self, speed: f32) -> Result<()>
Sourcepub fn white_balance_indoor(&self) -> Result<()>
pub fn white_balance_indoor(&self) -> Result<()>
Sourcepub fn white_balance_outdoor(&self) -> Result<()>
pub fn white_balance_outdoor(&self) -> Result<()>
Sourcepub fn white_balance_oneshot(&self) -> Result<()>
pub fn white_balance_oneshot(&self) -> Result<()>
Sourcepub fn exposure_manual(&self, level: f32) -> Result<()>
pub fn exposure_manual(&self, level: f32) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<'rx> Freeze for Ptz<'rx>
impl<'rx> RefUnwindSafe for Ptz<'rx>
impl<'rx> Send for Ptz<'rx>
impl<'rx> Sync for Ptz<'rx>
impl<'rx> Unpin for Ptz<'rx>
impl<'rx> UnsafeUnpin for Ptz<'rx>
impl<'rx> UnwindSafe for Ptz<'rx>
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