FocusCapability
FocusCapability — methods
pub fn is_focusable(self) -> bool
Whether the focus calls will work on this camera.
True only for FocusCapability::Motorized. The distinction
that matters is FocusCapability::Unknown: it means the
question has no answer yet, not that the answer is no, and
treating it as "yes" is the defect this replaced.
Examples
use optris_sdk::FocusCapability; assert!(FocusCapability::Motorized.is_focusable()); assert!(!FocusCapability::Fixed.is_focusable()); // Unknown is not a "no", but it is not a "yes" either. assert!(!FocusCapability::Unknown.is_focusable());