pub struct DeviceId { /* private fields */ }Expand description
Backend-scoped device identity. Persistence preserves the backend namespace;
IdentityStability still tells callers whether the native part is stable
across enumeration cycles or process restarts.
Implementations§
Source§impl DeviceId
impl DeviceId
Sourcepub fn new(
backend: BackendId,
native_id: impl Into<String>,
) -> CameraResult<Self>
pub fn new( backend: BackendId, native_id: impl Into<String>, ) -> CameraResult<Self>
Performs the new operation.
Sourcepub fn to_persistent_string(&self) -> String
pub fn to_persistent_string(&self) -> String
Performs the to_persistent_string operation.
Sourcepub fn parse(value: &str) -> CameraResult<Self>
pub fn parse(value: &str) -> CameraResult<Self>
Performs the parse operation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DeviceId
Available on crate feature serde only.
impl<'de> Deserialize<'de> for DeviceId
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 DeviceId
impl StructuralPartialEq for DeviceId
Auto Trait Implementations§
impl Freeze for DeviceId
impl RefUnwindSafe for DeviceId
impl Send for DeviceId
impl Sync for DeviceId
impl Unpin for DeviceId
impl UnsafeUnpin for DeviceId
impl UnwindSafe for DeviceId
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