pub struct AutoFocusSensitivityCommand {
pub sensitivity: AutoFocusSensitivity,
}Expand description
Command to set auto focus sensitivity.
Fields§
§sensitivity: AutoFocusSensitivityThe parameter value.
Implementations§
Source§impl AutoFocusSensitivityCommand
impl AutoFocusSensitivityCommand
Sourcepub fn new(sensitivity: AutoFocusSensitivity) -> Self
pub fn new(sensitivity: AutoFocusSensitivity) -> Self
Create a new auto focus sensitivity command.
Trait Implementations§
Source§impl Clone for AutoFocusSensitivityCommand
impl Clone for AutoFocusSensitivityCommand
Source§fn clone(&self) -> AutoFocusSensitivityCommand
fn clone(&self) -> AutoFocusSensitivityCommand
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 moreimpl Copy for AutoFocusSensitivityCommand
Source§impl Debug for AutoFocusSensitivityCommand
impl Debug for AutoFocusSensitivityCommand
Source§impl ViscaCommand for AutoFocusSensitivityCommand
impl ViscaCommand for AutoFocusSensitivityCommand
Source§const TIMEOUT_CATEGORY: CommandCategory = CommandCategory::Quick
const TIMEOUT_CATEGORY: CommandCategory = CommandCategory::Quick
The timeout category for this command. Read more
Source§fn write_into(
&self,
camera_id: CameraId,
buffer: &mut [u8],
) -> Result<usize, Error>
fn write_into( &self, camera_id: CameraId, buffer: &mut [u8], ) -> Result<usize, Error>
Writes the command into the provided buffer. Read more
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Exact encoded byte length for this instance (default: MAX_SIZE). Read more
Source§fn to_fixed_bytes<const N: usize>(
&self,
camera_id: CameraId,
) -> Result<FixedCommandBytes<N>, Error>
fn to_fixed_bytes<const N: usize>( &self, camera_id: CameraId, ) -> Result<FixedCommandBytes<N>, Error>
Encodes the command to a fixed-size, length-aware buffer. Read more
Source§fn to_bytes(&self, camera_id: CameraId) -> Result<Bytes, Error>
fn to_bytes(&self, camera_id: CameraId) -> Result<Bytes, Error>
Encodes the command to a
bytes::Bytes buffer. Read moreSource§fn behavior(&self) -> CommandBehavior
fn behavior(&self) -> CommandBehavior
Returns the complete behavior and response routing metadata for this command. Read more
Auto Trait Implementations§
impl Freeze for AutoFocusSensitivityCommand
impl RefUnwindSafe for AutoFocusSensitivityCommand
impl Send for AutoFocusSensitivityCommand
impl Sync for AutoFocusSensitivityCommand
impl Unpin for AutoFocusSensitivityCommand
impl UnsafeUnpin for AutoFocusSensitivityCommand
impl UnwindSafe for AutoFocusSensitivityCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CommandTimeout for Twhere
T: ViscaCommand,
impl<T> CommandTimeout for Twhere
T: ViscaCommand,
Source§fn timeout_class(&self) -> CommandCategory
fn timeout_class(&self) -> CommandCategory
Get the timeout class for this command. Read more