pub struct CameraWidgetState {
pub config: CameraConfig,
pub started: bool,
pub gl_texture_id: Option<u32>,
pub on_frame: OptionOnVideoFrame,
}Expand description
Live state for one camera widget, carried across relayout by
[merge_camera_state].
Fields§
§config: CameraConfigThe requested capture configuration (the control POD).
started: booltrue once the capture thread has been started.
gl_texture_id: Option<u32>The stable external GL texture id once the first frame installed it.
on_frame: OptionOnVideoFrameOptional user hook invoked with each captured frame (effects / save /
send). Re-set on every fresh build (see [merge_camera_state]).
Auto Trait Implementations§
impl Freeze for CameraWidgetState
impl RefUnwindSafe for CameraWidgetState
impl Send for CameraWidgetState
impl Sync for CameraWidgetState
impl Unpin for CameraWidgetState
impl UnsafeUnpin for CameraWidgetState
impl UnwindSafe for CameraWidgetState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more