pub struct PlaybackFrame<'a, I = RenderedTexture> {
pub requested_time: MediaTime,
pub presented_time: Option<MediaTime>,
pub texture: Option<&'a I>,
pub missing_sources: Vec<SourceId>,
pub repeated: bool,
pub unchanged: bool,
}Expand description
Result of one real-time presentation attempt, with I the picture the
renderer draws (FrameRenderer::Image).
Fields§
§requested_time: MediaTimeTimeline time requested by the host clock.
presented_time: Option<MediaTime>Timeline time of the returned texture, absent before the first success.
texture: Option<&'a I>Current or held picture. It remains owned by the player.
missing_sources: Vec<SourceId>Sources unavailable for the requested time.
repeated: boolWhether the texture is the previous successful frame.
unchanged: boolWhether the frame’s output equals the one last returned, so nothing was rendered: a host that presented that texture need not present it again.
Trait Implementations§
Auto Trait Implementations§
impl<'a, I> Freeze for PlaybackFrame<'a, I>
impl<'a, I> RefUnwindSafe for PlaybackFrame<'a, I>
impl<'a, I> Send for PlaybackFrame<'a, I>
impl<'a, I> Sync for PlaybackFrame<'a, I>
impl<'a, I> Unpin for PlaybackFrame<'a, I>
impl<'a, I> UnsafeUnpin for PlaybackFrame<'a, I>
impl<'a, I> UnwindSafe for PlaybackFrame<'a, I>
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> 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