pub struct DeviceInfo { /* private fields */ }Expand description
Immutable information about a discovered device.
Implementations§
Source§impl DeviceInfo
impl DeviceInfo
Sourcepub fn model_name(&self) -> PylonResult<String>
pub fn model_name(&self) -> PylonResult<String>
Returns the device model name.
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
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 Drop for DeviceInfo
impl Drop for DeviceInfo
Source§impl HasProperties for DeviceInfo
impl HasProperties for DeviceInfo
Source§fn property_names(&self) -> PylonResult<Vec<String>>
fn property_names(&self) -> PylonResult<Vec<String>>
Returns the available property names.
Source§fn property_value(&self, name: &str) -> PylonResult<String>
fn property_value(&self, name: &str) -> PylonResult<String>
Returns the value for a single property.
impl Send for DeviceInfo
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl !Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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