Enum symphonia_core::probe::Instantiate
source · pub enum Instantiate {
Format(fn(_: MediaSourceStream, _: &FormatOptions) -> Result<Box<dyn FormatReader>>),
Metadata(fn(_: &MetadataOptions) -> Box<dyn MetadataReader>),
}
Expand description
Instantiate
is an enumeration of instantiation functions used by Descriptor
and Probe
to
instantiate metadata and container format readers.
Variants§
Format(fn(_: MediaSourceStream, _: &FormatOptions) -> Result<Box<dyn FormatReader>>)
Instantiation function for a FormatReader
.
Metadata(fn(_: &MetadataOptions) -> Box<dyn MetadataReader>)
Instantiation function for a MetadataReader
.
Trait Implementations§
source§impl Clone for Instantiate
impl Clone for Instantiate
source§fn clone(&self) -> Instantiate
fn clone(&self) -> Instantiate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for Instantiate
Auto Trait Implementations§
impl RefUnwindSafe for Instantiate
impl Send for Instantiate
impl Sync for Instantiate
impl Unpin for Instantiate
impl UnwindSafe for Instantiate
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