Enum nokhwa::utils::ApiBackend
source · pub enum ApiBackend {
Auto,
AVFoundation,
Video4Linux,
UniversalVideoClass,
MediaFoundation,
OpenCv,
GStreamer,
Network,
Browser,
}
Expand description
The list of known capture backends to the library.
AUTO
is special - it tells the Camera struct to automatically choose a backend most suited for the current platform.AVFoundation
- UsesAVFoundation
onMacOSX
Video4Linux
-Video4Linux2
, a linux specific backend.UniversalVideoClass
- DEPRECATED Universal Video Class (please check libuvc). Platform agnostic, although on linux it needssudo
permissions or similar to use.MediaFoundation
- Microsoft Media Foundation, Windows only,OpenCv
- UsesOpenCV
to capture. Platform agnostic.GStreamer
- DEPRECATED UsesGStreamer
RTP to capture. Platform agnostic.Network
- UsesOpenCV
to 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 copy 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<'de> Deserialize<'de> for ApiBackend
impl<'de> Deserialize<'de> for ApiBackend
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ApiBackend, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ApiBackend, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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<ApiBackend> for ApiBackend
impl PartialEq<ApiBackend> for ApiBackend
source§fn eq(&self, other: &ApiBackend) -> bool
fn eq(&self, other: &ApiBackend) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ApiBackend> for ApiBackend
impl PartialOrd<ApiBackend> for ApiBackend
source§fn partial_cmp(&self, other: &ApiBackend) -> Option<Ordering>
fn partial_cmp(&self, other: &ApiBackend) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ApiBackend
impl Serialize for ApiBackend
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ApiBackend
impl Eq for ApiBackend
impl StructuralEq for ApiBackend
impl StructuralPartialEq for ApiBackend
Auto Trait Implementations§
impl RefUnwindSafe for ApiBackend
impl Send for ApiBackend
impl Sync for ApiBackend
impl Unpin 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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.