pub enum ApiBackend {
Auto,
AVFoundation,
Video4Linux,
UniversalVideoClass,
MediaFoundation,
OpenCv,
GStreamer,
Network,
Browser,
}Expand description
The list of known capture backends to the library.
AUTOis special - it tells the Camera struct to automatically choose a backend most suited for the current platform.AVFoundation- UsesAVFoundationonMacOSXVideo4Linux-Video4Linux2, a linux specific backend.UniversalVideoClass- DEPRECATED Universal Video Class (please check libuvc). Platform agnostic, although on linux it needssudopermissions or similar to use.MediaFoundation- Microsoft Media Foundation, Windows only,OpenCv- UsesOpenCVto capture. Platform agnostic.GStreamer- DEPRECATED UsesGStreamerRTP to capture. Platform agnostic.Network- UsesOpenCVto capture from an IP.Browser- Uses browser APIs to capture from a webcam.
Variants§
Trait Implementations§
Source§impl Clone for ApiBackend
impl Clone for ApiBackend
Source§fn clone(&self) -> ApiBackend
fn clone(&self) -> ApiBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiBackend
impl Debug for ApiBackend
Source§impl Display for ApiBackend
impl Display for ApiBackend
Source§impl Hash for ApiBackend
impl Hash for ApiBackend
Source§impl Ord for ApiBackend
impl Ord for ApiBackend
Source§fn cmp(&self, other: &ApiBackend) -> Ordering
fn cmp(&self, other: &ApiBackend) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ApiBackend
impl PartialEq for ApiBackend
Source§impl PartialOrd for ApiBackend
impl PartialOrd for ApiBackend
impl Copy for ApiBackend
impl Eq for ApiBackend
impl StructuralPartialEq for ApiBackend
Auto Trait Implementations§
impl Freeze for ApiBackend
impl RefUnwindSafe for ApiBackend
impl Send for ApiBackend
impl Sync for ApiBackend
impl Unpin for ApiBackend
impl UnsafeUnpin for ApiBackend
impl UnwindSafe for ApiBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more