pub struct BackendId(/* private fields */);Expand description
Stable identifier for a built-in or application-provided camera backend.
Implementations§
Source§impl BackendId
impl BackendId
Sourcepub const AV_FOUNDATION: Self
pub const AV_FOUNDATION: Self
Apple AVFoundation backend.
Sourcepub const MEDIA_FOUNDATION: Self
pub const MEDIA_FOUNDATION: Self
Windows Media Foundation backend.
Sourcepub fn custom(namespace: &str, name: &str) -> CameraResult<Self>
pub fn custom(namespace: &str, name: &str) -> CameraResult<Self>
Creates a namespaced identifier for an application-provided backend.
Each component must be a non-empty ASCII identifier of at most 96 bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BackendId
Available on crate feature serde only.
impl<'de> Deserialize<'de> for BackendId
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BackendId
Source§impl Ord for BackendId
impl Ord for BackendId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for BackendId
impl PartialOrd for BackendId
impl StructuralPartialEq for BackendId
Auto Trait Implementations§
impl Freeze for BackendId
impl RefUnwindSafe for BackendId
impl Send for BackendId
impl Sync for BackendId
impl Unpin for BackendId
impl UnsafeUnpin for BackendId
impl UnwindSafe for BackendId
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