pub enum ContainerFormat {
Flac,
Mpa,
Ogg,
Wav,
Aiff,
Ape,
}Expand description
All recognized audio containers
Variants§
Implementations§
Source§impl ContainerFormat
impl ContainerFormat
Sourcepub fn from_file(handle: &mut File) -> Option<Self>
pub fn from_file(handle: &mut File) -> Option<Self>
Gets container type by reading magic bytes
Returns none if the container type is unsupported or unrecognized, or cannot be read
Sourcepub fn format_name(&self) -> &str
pub fn format_name(&self) -> &str
Returns the name as of the container that ffmpeg uses for encoding (the “format_name”)
Trait Implementations§
Source§impl Clone for ContainerFormat
impl Clone for ContainerFormat
Source§fn clone(&self) -> ContainerFormat
fn clone(&self) -> ContainerFormat
Returns a duplicate 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 moreSource§impl Debug for ContainerFormat
impl Debug for ContainerFormat
Source§impl<'de> Deserialize<'de> for ContainerFormat
impl<'de> Deserialize<'de> for ContainerFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for ContainerFormat
impl Ord for ContainerFormat
Source§fn cmp(&self, other: &ContainerFormat) -> Ordering
fn cmp(&self, other: &ContainerFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ContainerFormat
impl PartialEq for ContainerFormat
Source§impl PartialOrd for ContainerFormat
impl PartialOrd for ContainerFormat
Source§impl Serialize for ContainerFormat
impl Serialize for ContainerFormat
impl Copy for ContainerFormat
impl Eq for ContainerFormat
impl StructuralPartialEq for ContainerFormat
Auto Trait Implementations§
impl Freeze for ContainerFormat
impl RefUnwindSafe for ContainerFormat
impl Send for ContainerFormat
impl Sync for ContainerFormat
impl Unpin for ContainerFormat
impl UnsafeUnpin for ContainerFormat
impl UnwindSafe for ContainerFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more