pub trait AVFile {
// Required method
fn path_url(&self) -> &str;
// Provided methods
fn c_path_url(&self) -> Result<CString> { ... }
fn ifmt_ctx(&self) -> Result<AVFormatContextInput> { ... }
fn ofmt_ctx(&self) -> Result<AVFormatContextOutput> { ... }
}Expand description
AV file trait.
Required Methods§
Provided Methods§
Sourcefn c_path_url(&self) -> Result<CString>
fn c_path_url(&self) -> Result<CString>
The c-style file url.
Sourcefn ifmt_ctx(&self) -> Result<AVFormatContextInput>
fn ifmt_ctx(&self) -> Result<AVFormatContextInput>
Open the file as format context input.
Sourcefn ofmt_ctx(&self) -> Result<AVFormatContextOutput>
fn ofmt_ctx(&self) -> Result<AVFormatContextOutput>
Open the file as format context output.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".