pub struct ProbeCache { /* private fields */ }Expand description
Thread-safe probe result cache to avoid redundant ffprobe calls.
Implementations§
Source§impl ProbeCache
impl ProbeCache
pub fn new() -> Self
pub fn with_engine(engine: ProbeEngine) -> Self
Sourcepub async fn probe(&self, path: &str) -> Result<ProbeResult>
pub async fn probe(&self, path: &str) -> Result<ProbeResult>
Returns cached result or calls ffprobe and caches the result.
Trait Implementations§
Source§impl Clone for ProbeCache
impl Clone for ProbeCache
Source§fn clone(&self) -> ProbeCache
fn clone(&self) -> ProbeCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProbeCache
impl Debug for ProbeCache
Auto Trait Implementations§
impl Freeze for ProbeCache
impl !RefUnwindSafe for ProbeCache
impl Send for ProbeCache
impl Sync for ProbeCache
impl Unpin for ProbeCache
impl UnsafeUnpin for ProbeCache
impl !UnwindSafe for ProbeCache
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