pub struct ScreenCaptureWidgetState {
pub config: ScreenCaptureConfig,
pub started: bool,
pub gl_texture_id: Option<u32>,
pub on_frame: OptionOnVideoFrame,
}Expand description
Live state for one screencap widget, carried across relayout by
[merge_screencap_state].
Fields§
§config: ScreenCaptureConfigThe 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 installed.
on_frame: OptionOnVideoFrameOptional user hook invoked with each captured frame (effects / save /
send). Re-set on every fresh build (see [merge_screencap_state]).
Auto Trait Implementations§
impl Freeze for ScreenCaptureWidgetState
impl RefUnwindSafe for ScreenCaptureWidgetState
impl Send for ScreenCaptureWidgetState
impl Sync for ScreenCaptureWidgetState
impl Unpin for ScreenCaptureWidgetState
impl UnsafeUnpin for ScreenCaptureWidgetState
impl UnwindSafe for ScreenCaptureWidgetState
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