pub enum FrameResult {
Frame(VideoFrame),
Seeking(Option<VideoFrame>),
Eof,
}Expand description
The result of a DecodeBuffer::pop_frame call.
Callers should match on all three variants; discarding Seeking is a
common pattern for scrub-bar UIs that want to display the last good frame
while a seek is in progress.
Variants§
Frame(VideoFrame)
A decoded frame ready for presentation.
Seeking(Option<VideoFrame>)
A seek is in progress; the wrapped value is the last successfully
decoded frame, or None if no frame has been decoded yet.
Call pop_frame again after a short delay
to check whether seeking has completed.
Eof
End of file — no more frames will be produced.
Trait Implementations§
Source§impl Clone for FrameResult
impl Clone for FrameResult
Source§fn clone(&self) -> FrameResult
fn clone(&self) -> FrameResult
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 !RefUnwindSafe for FrameResult
impl !UnwindSafe for FrameResult
impl Freeze for FrameResult
impl Send for FrameResult
impl Sync for FrameResult
impl Unpin for FrameResult
impl UnsafeUnpin for FrameResult
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