pub struct PlaybackFrame<'a> {
pub requested_time: MediaTime,
pub presented_time: Option<MediaTime>,
pub texture: Option<&'a RenderedTexture>,
pub missing_sources: Vec<SourceId>,
pub repeated: bool,
pub unchanged: bool,
}Expand description
Result of one real-time presentation attempt.
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 RenderedTexture>Current or held texture. 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> !RefUnwindSafe for PlaybackFrame<'a>
impl<'a> !UnwindSafe for PlaybackFrame<'a>
impl<'a> Freeze for PlaybackFrame<'a>
impl<'a> Send for PlaybackFrame<'a>
impl<'a> Sync for PlaybackFrame<'a>
impl<'a> Unpin for PlaybackFrame<'a>
impl<'a> UnsafeUnpin for PlaybackFrame<'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