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

V4l2(Context)

Video4Linux2 context

Implementations

Trait Implementations

Returns all devices currently available

Opens a device handle

Returns the “default value” for a type. Read more

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

Performs the conversion.

Performs the conversion.

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.