pub struct UsbDevice { /* private fields */ }Expand description
USB device description
Implementations§
Source§impl UsbDevice
impl UsbDevice
Sourcepub fn is_readable(&self) -> bool
pub fn is_readable(&self) -> bool
Return if the device is readable.
Sourcepub fn is_writable(&self) -> bool
pub fn is_writable(&self) -> bool
Return if the device is writable.
Sourcepub fn device_file(&self) -> Option<&str>
pub fn device_file(&self) -> Option<&str>
Return the optional device file.
Sourcepub fn properties(&self) -> Option<&HashMap<String, OwnedValue>>
pub fn properties(&self) -> Option<&HashMap<String, OwnedValue>>
Return the device properties.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UsbDevice
impl<'de> Deserialize<'de> for UsbDevice
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
Auto Trait Implementations§
impl Freeze for UsbDevice
impl RefUnwindSafe for UsbDevice
impl Send for UsbDevice
impl Sync for UsbDevice
impl Unpin for UsbDevice
impl UnwindSafe for UsbDevice
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<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.