Struct symphonia_core::probe::Descriptor
source · pub struct Descriptor {
pub short_name: &'static str,
pub long_name: &'static str,
pub extensions: &'static [&'static str],
pub mime_types: &'static [&'static str],
pub markers: &'static [&'static [u8]],
pub score: fn(_: &[u8]) -> u8,
pub inst: Instantiate,
}
Expand description
Descriptor
provides declarative information about container and metadata formats.
Descriptor
s are used by Probe
and related machinery to scan a MediaSourceStream
for media.
Fields§
§short_name: &'static str
A short ASCII-only string identifying the codec.
long_name: &'static str
A longer, more descriptive, string identifying the codec.
extensions: &'static [&'static str]
A list of case-insensitive file extensions that are generally used by the format.
mime_types: &'static [&'static str]
A list of case-insensitive MIME types that are generally used by the format.
markers: &'static [&'static [u8]]
A byte-string start-of-stream marker that will be searched for within the stream.
score: fn(_: &[u8]) -> u8
A function to score a context buffer.
inst: Instantiate
An instantiation function.
Trait Implementations§
source§impl Clone for Descriptor
impl Clone for Descriptor
source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
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 Descriptor
Auto Trait Implementations§
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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