FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CameraCapture

    struct · ferroui-media-camera · v0.5.0

    struct CameraCapture
    

    View source

    Members

    new

    fn new(provider: Rc<dyn CameraProvider>, budget: FrameBudget) -> Self
    

    Source

    rebind_provider

    fn rebind_provider(self: &Self, provider: Rc<dyn CameraProvider>)
    

    Rebinds renderer resources while retaining the source identity and shared budget. Active sessions are caller-owned and must be stopped separately.

    Source

    devices

    fn devices(self: &Self) -> CameraFuture<Vec<CameraDevice>>
    

    Source

    permission

    fn permission(self: &Self) -> CameraPermission
    

    Source

    cancel_pending_start

    fn cancel_pending_start(self: &Self)
    

    Source

    start

    fn start(self: &Self, options: CameraStartOptions) -> CameraFuture<CameraSession>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.