pub struct Context<M: Muxer + Send, WO: WriteOwned, WS: WriteSeek> {
    pub user_private: Option<Box<dyn Any + Send + Sync>>,
    /* private fields */
}
Expand description

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

Fields

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

User private data.

This data cannot be cloned.

Implementations

Creates a new Context instance.

Configures a muxer.

Writes a stream header to an internal buffer and returns how many bytes were written or an error.

Writes a stream packet to an internal buffer and returns how many bytes were written or an error.

Writes a stream trailer to an internal buffer and returns how many bytes were written or an error.

Sets global media file information for a muxer.

Sets a muxer option.

This method should be called as many times as the number of options present in a muxer.

Returns the underlying writer.

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.