Trait symphonia_core::meta::MetadataReader
source · pub trait MetadataReader: Send + Sync {
// Required methods
fn new(options: &MetadataOptions) -> Self
where Self: Sized;
fn read_all(
&mut self,
reader: &mut MediaSourceStream,
) -> Result<MetadataRevision>;
}
Required Methods§
sourcefn new(options: &MetadataOptions) -> Selfwhere
Self: Sized,
fn new(options: &MetadataOptions) -> Selfwhere
Self: Sized,
Instantiates the MetadataReader
with the provided MetadataOptions
.
sourcefn read_all(
&mut self,
reader: &mut MediaSourceStream,
) -> Result<MetadataRevision>
fn read_all( &mut self, reader: &mut MediaSourceStream, ) -> Result<MetadataRevision>
Read all metadata and return it if successful.