Enum media_infer::ContainerType [−][src]
pub enum ContainerType {}Show variants
MKV, ASF, GXF, WTV, RCWT, MP4, TS, PS, MXF, M2TS, TivoPS, McPoodlesRaw, ES,
Expand description
Enum of the vairous Container Types. Does not contain Unknown. Methods throw error if container cannot be identified.
Variants
Matroska stream file
Advanced Systems Format
General eXchange Format
Windows Recorded TV Show
CCExtractor Format
MPEG-4
Transport Stream
Program Stream Stream
Material Exchange Format
MPEG-2 Part 1 Transport
TIVO Program Stream
Elementary Stream
Implementations
impl ContainerType
[src]
impl ContainerType
[src]pub fn from_bytes(buffer: &[u8]) -> Result<Self, String>
[src]
pub fn from_bytes(buffer: &[u8]) -> Result<Self, String>
[src]Function to infer Container from a slice of bytes. Throws Error if identification fails.
pub fn from_file(file: &mut File) -> Result<Self, String>
[src]
pub fn from_file(file: &mut File) -> Result<Self, String>
[src]Function to infer Container from file. Reads the starting bytes from an open file. Throws IO error + error in indentification failure
pub fn from_file_path(path: &Path) -> Result<Self, String>
[src]
pub fn from_file_path(path: &Path) -> Result<Self, String>
[src]Function to infer Container from file. Takes path of file and opens it itself. Throws error in IO failure + identification failure.
Trait Implementations
impl Clone for ContainerType
[src]
impl Clone for ContainerType
[src]fn clone(&self) -> ContainerType
[src]
fn clone(&self) -> ContainerType
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ContainerType
[src]
impl Debug for ContainerType
[src]impl Display for ContainerType
[src]
impl Display for ContainerType
[src]impl FromStr for ContainerType
[src]
impl FromStr for ContainerType
[src]impl PartialEq<ContainerType> for ContainerType
[src]
impl PartialEq<ContainerType> for ContainerType
[src]impl Copy for ContainerType
[src]
impl Eq for ContainerType
[src]
impl StructuralEq for ContainerType
[src]
impl StructuralPartialEq for ContainerType
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContainerType
impl Send for ContainerType
impl Sync for ContainerType
impl Unpin for ContainerType
impl UnwindSafe for ContainerType
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more