pub struct PreviewMediaRequest {
pub items: Vec<PreviewMediaItem>,
pub start_index: i32,
pub advance: PreviewMediaAdvance,
pub show_index_indicator: bool,
pub callback_id: u64,
pub presented_callback_id: u64,
}Fields§
§items: Vec<PreviewMediaItem>§start_index: i32§advance: PreviewMediaAdvance§show_index_indicator: bool§callback_id: u64Callback_id for the final preview result. Fires once when the session
ends (manual/auto/interrupted/error). Payload: serialized
PreviewMediaResultObj ({reason, lastIndex}).
presented_callback_id: u64Callback_id for the “first frame composited” signal. Fires once when
the first pixel of the underlying media has been painted to screen.
Native MAY skip on degenerate paths (abort before any item rendered,
process tear-down, etc.) — the JS-side presented Promise is also
woken by a fallback when completed settles, and by a total timeout
after that, so it never hangs. The callback payload, when fired, is
an empty JSON object {}.
Trait Implementations§
Source§impl Clone for PreviewMediaRequest
impl Clone for PreviewMediaRequest
Source§fn clone(&self) -> PreviewMediaRequest
fn clone(&self) -> PreviewMediaRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PreviewMediaRequest
impl RefUnwindSafe for PreviewMediaRequest
impl Send for PreviewMediaRequest
impl Sync for PreviewMediaRequest
impl Unpin for PreviewMediaRequest
impl UnsafeUnpin for PreviewMediaRequest
impl UnwindSafe for PreviewMediaRequest
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