Struct symphonia_core::probe::Probe
source · pub struct Probe { /* private fields */ }
Expand description
Probe
scans a MediaSourceStream
for metadata and container formats, and provides an
iterator-like interface to instantiate readers for the formats encountered.
Implementations§
source§impl Probe
impl Probe
sourcepub fn register_all<Q: QueryDescriptor>(&mut self)
pub fn register_all<Q: QueryDescriptor>(&mut self)
Register all Descriptor
s supported by the parameterized type.
sourcepub fn register(&mut self, descriptor: &Descriptor)
pub fn register(&mut self, descriptor: &Descriptor)
Register a single Descriptor
.
sourcepub fn next(&self, mss: &mut MediaSourceStream) -> Result<Instantiate>
pub fn next(&self, mss: &mut MediaSourceStream) -> Result<Instantiate>
Searches the provided MediaSourceStream
for metadata or a container format.
sourcepub fn format(
&self,
_hint: &Hint,
mss: MediaSourceStream,
format_opts: &FormatOptions,
metadata_opts: &MetadataOptions,
) -> Result<ProbeResult>
pub fn format( &self, _hint: &Hint, mss: MediaSourceStream, format_opts: &FormatOptions, metadata_opts: &MetadataOptions, ) -> Result<ProbeResult>
Searches the provided MediaSourceStream
for a container format. Any metadata that is read
during the search will be queued and attached to the FormatReader
instance once a
container format is found.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Probe
impl RefUnwindSafe for Probe
impl Send for Probe
impl Sync for Probe
impl Unpin for Probe
impl UnwindSafe for Probe
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