struct FrameCache {
map: HashMap<u64, VideoFrame>,
order: Vec<u64>,
capacity: usize,
}Expand description
A small LRU cache of decoded frames keyed by frame index.
Fields§
§map: HashMap<u64, VideoFrame>§order: Vec<u64>Frame indices in least-recently-used order (LRU at the front).
capacity: usizeImplementations§
Auto Trait Implementations§
impl Freeze for FrameCache
impl RefUnwindSafe for FrameCache
impl Send for FrameCache
impl Sync for FrameCache
impl Unpin for FrameCache
impl UnsafeUnpin for FrameCache
impl UnwindSafe for FrameCache
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