pub struct VideoWidgetState {
pub config: VideoConfig,
pub started: bool,
pub gl_texture_id: Option<u32>,
pub on_frame: OptionOnVideoFrame,
}Expand description
Live state for one video widget, carried across relayout by
[merge_video_state].
Fields§
§config: VideoConfigThe requested playback configuration (source + autoplay/loop).
started: booltrue once the decode 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 decoded frame (effects / save /
send). Re-set on every fresh build (see [merge_video_state]).
Auto Trait Implementations§
impl Freeze for VideoWidgetState
impl RefUnwindSafe for VideoWidgetState
impl Send for VideoWidgetState
impl Sync for VideoWidgetState
impl Unpin for VideoWidgetState
impl UnsafeUnpin for VideoWidgetState
impl UnwindSafe for VideoWidgetState
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