Skip to main content

VisionInput

Trait VisionInput 

Source
pub trait VisionInput:
    Sealed
    + Send
    + Sync
    + 'static {
    type Clip: Send + Sync + Debug + 'static;

    const REMOTE: bool;

    // Required method
    fn sent(&self) -> &SentImage;
}
Available on crate feature vision only.
Expand description

The two kinds of image a backend can be handed: SentImage for on-device backends and ReleasedImage for remote ones. Sealed: no other type implements it.

Required Associated Constants§

Required Associated Types§

Source

type Clip: Send + Sync + Debug + 'static

The clip a video backend of the same kind is handed: SentClip on the device, ReleasedClip off it.

Required Methods§

Source

fn sent(&self) -> &SentImage

The pixels and transform chain.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§