Skip to main content

AVFile

Trait AVFile 

Source
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§

Source

fn path_url(&self) -> &str

The file url.

Provided Methods§

Source

fn c_path_url(&self) -> Result<CString>

The c-style file url.

Source

fn ifmt_ctx(&self) -> Result<AVFormatContextInput>

Open the file as format context input.

Source

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".

Implementors§