CameraSession
struct · ferroui-media-camera · v0.5.0
struct CameraSession
Members
platform_contextdowngradeis_stoppedsettingsframespollphotosupports_video_recordingstart_recordingset_controlstop
platform_context
fn platform_context<T: std::any::Any>(self: &Self) -> Option<&T>
downgrade
fn downgrade(self: &Self) -> WeakCameraSession
is_stopped
fn is_stopped(self: &Self) -> bool
settings
fn settings(self: &Self) -> CameraSettings
frames
fn frames(self: &Self) -> Arc<FrameMailbox>
poll
fn poll(self: &Self) -> Result<(), CameraError>
photo
fn photo(self: &Self) -> CameraFuture<CameraPhoto>
supports_video_recording
fn supports_video_recording(self: &Self) -> bool
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.
set_control
fn set_control(self: &Self, control: CameraControl) -> Result<(), CameraError>
stop
fn stop(self: &Self)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherClone
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.