pub struct ReverseWindow<F> { /* private fields */ }Expand description
Frames by time, at most budget bytes of distinct frames (always at least one key).
Implementations§
Source§impl<F> ReverseWindow<F>
impl<F> ReverseWindow<F>
Sourcepub fn push(
&mut self,
time: MediaTime,
frame: Arc<F>,
bytes: impl Fn(&F) -> u64,
)
pub fn push( &mut self, time: MediaTime, frame: Arc<F>, bytes: impl Fn(&F) -> u64, )
Adds frame at time, after every key so far, and drops the earliest keys while over
budget. bytes is what frame holds; it counts once when the previous key shares it.
Auto Trait Implementations§
impl<F> Forget for ReverseWindow<F>
impl<F> Freeze for ReverseWindow<F>
impl<F> Move for ReverseWindow<F>
impl<F> RefUnwindSafe for ReverseWindow<F>
impl<F> Send for ReverseWindow<F>
impl<F> Sync for ReverseWindow<F>
impl<F> Unpin for ReverseWindow<F>
impl<F> UnsafeUnpin for ReverseWindow<F>
impl<F> UnwindSafe for ReverseWindow<F>
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