#[non_exhaustive]pub enum ConversionRoute {
ExtractAudio(AudioFormat),
TranscodeVideo(VideoFormat),
TranscodeAudio(AudioFormat),
}Expand description
A conversion route inferred from input and output file extensions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl ConversionRoute
impl ConversionRoute
pub fn mode(self) -> ConversionMode
pub fn audio_format(self) -> Option<AudioFormat>
pub fn video_format(self) -> Option<VideoFormat>
pub fn output_extension(self) -> &'static str
Trait Implementations§
Source§impl Clone for ConversionRoute
impl Clone for ConversionRoute
Source§fn clone(&self) -> ConversionRoute
fn clone(&self) -> ConversionRoute
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 moreimpl Copy for ConversionRoute
Source§impl Debug for ConversionRoute
impl Debug for ConversionRoute
impl Eq for ConversionRoute
Source§impl PartialEq for ConversionRoute
impl PartialEq for ConversionRoute
impl StructuralPartialEq for ConversionRoute
Auto Trait Implementations§
impl Freeze for ConversionRoute
impl RefUnwindSafe for ConversionRoute
impl Send for ConversionRoute
impl Sync for ConversionRoute
impl Unpin for ConversionRoute
impl UnsafeUnpin for ConversionRoute
impl UnwindSafe for ConversionRoute
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