pub struct FollowingFrame<'a> {
pub view: SourceView<'a>,
pub key: Option<RenderCacheKey>,
pub pending: Option<&'a PendingSourceWork>,
pub presented_at: MediaTime,
pub at: MediaTime,
}Expand description
A frame and when it and the frame before it are presented.
Fields§
§view: SourceView<'a>The picture, as FrameProvider::texture_for lends one.
key: Option<RenderCacheKey>What FrameProvider::source_key promises, for this picture.
pending: Option<&'a PendingSourceWork>What FrameProvider::pending_source_work returns, for this picture.
presented_at: MediaTimePresentation time of the frame FrameProvider::texture_for returns.
at: MediaTimePresentation time of this frame, after presented_at.
Trait Implementations§
Source§impl<'a> Clone for FollowingFrame<'a>
impl<'a> Clone for FollowingFrame<'a>
impl<'a> Copy for FollowingFrame<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FollowingFrame<'a>
impl<'a> !UnwindSafe for FollowingFrame<'a>
impl<'a> Forget for FollowingFrame<'a>
impl<'a> Freeze for FollowingFrame<'a>
impl<'a> Move for FollowingFrame<'a>
impl<'a> Send for FollowingFrame<'a>
impl<'a> Sync for FollowingFrame<'a>
impl<'a> Unpin for FollowingFrame<'a>
impl<'a> UnsafeUnpin for FollowingFrame<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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