pub struct KeyframeCache { /* private fields */ }Implementations§
Source§impl KeyframeCache
impl KeyframeCache
pub fn new( description: &MediaDescription, config: StartupCacheConfig, ) -> Result<Self>
pub fn push(&mut self, frame: Arc<AccessUnit>)
pub fn snapshot(&self, track_id: u8) -> Vec<Arc<AccessUnit>>
pub fn snapshot_all(&self) -> Vec<Arc<AccessUnit>>
pub fn clear(&mut self)
pub fn usage(&self) -> (usize, usize)
Auto Trait Implementations§
impl Forget for KeyframeCache
impl Freeze for KeyframeCache
impl Move for KeyframeCache
impl RefUnwindSafe for KeyframeCache
impl Send for KeyframeCache
impl Sync for KeyframeCache
impl Unpin for KeyframeCache
impl UnsafeUnpin for KeyframeCache
impl UnwindSafe for KeyframeCache
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