Enum eye_hal::platform::Context [−][src]
pub enum Context<'a> {
Custom(Box<dyn ContextTrait + Send + 'a>),
V4l2(Context),
}Expand description
Platform context
Leaky abstraction: if you require access to platform specific features, match the enum instance to get the underlying HAL implementation.
A context is used to query platform properties, available devices and more.
Variants
Custom(Box<dyn ContextTrait + Send + 'a>)Can be used to wrap your own struct
Video4Linux2 context
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Context<'a>impl<'a> !UnwindSafe for Context<'a>