pub struct Context<D: Demuxer, R: Buffered> {
    pub info: GlobalInfo,
    pub user_private: Option<Arc<dyn Any + Send + Sync>>,
    /* private fields */
}
Expand description

Auxiliary structure to encapsulate a demuxer object and its additional data.

Fields

info: GlobalInfo

Global media file information.

user_private: Option<Arc<dyn Any + Send + Sync>>

User private data.

This data cannot be cloned.

Implementations

Creates a new Context instance.

Returns the underlying demuxer.

Reads stream headers and global information from a data source.

Reads an event from a data source.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.