pub struct CameraSystem { /* private fields */ }Expand description
Enumeration is isolated from the async executor. Explicit backend requests never fall back to another device namespace.
Implementations§
Source§impl CameraSystem
impl CameraSystem
Sourcepub fn builder() -> SystemBuilder
pub fn builder() -> SystemBuilder
Starts building a camera system with platform-default selection.
Sourcepub fn synthetic() -> Self
pub fn synthetic() -> Self
Deterministic, timer-driven RGB source for examples and hardware-free tests.
Sourcepub fn backend_policy(&self) -> &BackendPolicy
pub fn backend_policy(&self) -> &BackendPolicy
Returns the configured backend selection policy.
Sourcepub fn available_backends(&self) -> Vec<BackendId>
pub fn available_backends(&self) -> Vec<BackendId>
Lists compiled backends that support this target, including custom providers.
Sourcepub fn backend_availability(&self, backend: &BackendId) -> BackendAvailability
pub fn backend_availability(&self, backend: &BackendId) -> BackendAvailability
Reports why a backend is available or unavailable in this build.
Sourcepub fn permission_status(
&self,
backend: &BackendId,
) -> CameraResult<PermissionStatus>
pub fn permission_status( &self, backend: &BackendId, ) -> CameraResult<PermissionStatus>
Queries the authorization state without opening a device.
Sourcepub async fn request_permission(
&self,
backend: &BackendId,
) -> CameraResult<bool>
pub async fn request_permission( &self, backend: &BackendId, ) -> CameraResult<bool>
Explicitly request a permission only where the backend owns a supported
platform prompt. open never calls this method implicitly.
Sourcepub fn devices_blocking(&self) -> CameraResult<Vec<DeviceInfo>>
pub fn devices_blocking(&self) -> CameraResult<Vec<DeviceInfo>>
Blocking enumeration for native worker threads and synchronous applications.
Sourcepub fn capabilities_blocking(
&self,
id: &DeviceId,
) -> CameraResult<DeviceCapabilities>
pub fn capabilities_blocking( &self, id: &DeviceId, ) -> CameraResult<DeviceCapabilities>
Performs the capabilities_blocking operation.
Sourcepub async fn devices(&self) -> CameraResult<Vec<DeviceInfo>>
pub async fn devices(&self) -> CameraResult<Vec<DeviceInfo>>
Enumerates devices according to the configured backend policy.
Sourcepub async fn capabilities(
&self,
id: &DeviceId,
) -> CameraResult<DeviceCapabilities>
pub async fn capabilities( &self, id: &DeviceId, ) -> CameraResult<DeviceCapabilities>
Queries formats, resolutions, frame rates, and controls for a device.
Sourcepub async fn capabilities_timeout(
&self,
id: &DeviceId,
timeout: Duration,
) -> CameraResult<DeviceCapabilities>
pub async fn capabilities_timeout( &self, id: &DeviceId, timeout: Duration, ) -> CameraResult<DeviceCapabilities>
Performs the capabilities_timeout operation.
Sourcepub async fn open(&self, selector: DeviceSelector) -> CameraResult<Device>
pub async fn open(&self, selector: DeviceSelector) -> CameraResult<Device>
Opens a selected device using the default startup deadline.
Sourcepub async fn open_timeout(
&self,
selector: DeviceSelector,
timeout: Duration,
) -> CameraResult<Device>
pub async fn open_timeout( &self, selector: DeviceSelector, timeout: Duration, ) -> CameraResult<Device>
Performs the open_timeout operation.
Sourcepub fn capture(&self, selector: DeviceSelector) -> CaptureBuilder
pub fn capture(&self, selector: DeviceSelector) -> CaptureBuilder
Creates a high-level capture builder that owns its session and receiver.
Sourcepub async fn plan(
&self,
selector: DeviceSelector,
request: CaptureRequest,
) -> CameraResult<CapturePlan>
pub async fn plan( &self, selector: DeviceSelector, request: CaptureRequest, ) -> CameraResult<CapturePlan>
Performs the plan operation.
Source§impl CameraSystem
impl CameraSystem
Sourcepub async fn watch_devices(
&self,
interval: Duration,
) -> CameraResult<DeviceWatcher>
pub async fn watch_devices( &self, interval: Duration, ) -> CameraResult<DeviceWatcher>
Performs the watch_devices operation.