pub struct Context<D, R> where
D: Demuxer,
R: Buffered, {
pub info: GlobalInfo,
pub user_private: Option<Arc<dyn Any + Send + Sync + 'static>>,
/* 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 + 'static>>
User private data.
This data cannot be cloned.
Implementations
Auto Trait Implementations
impl<D, R> !RefUnwindSafe for Context<D, R>
impl<D, R> Send for Context<D, R>
impl<D, R> Sync for Context<D, R>
impl<D, R> Unpin for Context<D, R> where
D: Unpin,
R: Unpin,
impl<D, R> !UnwindSafe for Context<D, R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more