FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CameraSession

    struct · ferroui-media-camera · v0.5.0

    struct CameraSession
    

    View source

    Members

    platform_context

    fn platform_context<T: std::any::Any>(self: &Self) -> Option<&T>
    

    Source

    downgrade

    fn downgrade(self: &Self) -> WeakCameraSession
    

    Source

    is_stopped

    fn is_stopped(self: &Self) -> bool
    

    Source

    settings

    fn settings(self: &Self) -> CameraSettings
    

    Source

    frames

    fn frames(self: &Self) -> Arc<FrameMailbox>
    

    Source

    poll

    fn poll(self: &Self) -> Result<(), CameraError>
    

    Source

    photo

    fn photo(self: &Self) -> CameraFuture<CameraPhoto>
    

    Source

    supports_video_recording

    fn supports_video_recording(self: &Self) -> bool
    

    Source

    start_recording

    fn start_recording(self: &Self) -> CameraFuture<CameraRecording>
    

    Begins one silent native recording. Dropping preparation cancels it; stopping the camera invalidates both recording and its encoded result.

    Source

    set_control

    fn set_control(self: &Self, control: CameraControl) -> Result<(), CameraError>
    

    Source

    stop

    fn stop(self: &Self)
    

    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.