Struct fwupd_dbus::Device [−][src]
pub struct Device {}Show fields
pub checksum: Option<Box<str>>, pub created: u64, pub description: Option<Box<str>>, pub device_id: DeviceId, pub flags: DeviceFlags, pub flashes_left: Option<u32>, pub guid: Box<[Box<str>]>, pub icon: Box<[Box<str>]>, pub install_duration: Option<u32>, pub instance_ids: Box<[Box<str>]>, pub modified: Option<u64>, pub name: Box<str>, pub parent_device_id: Option<DeviceId>, pub plugin: Box<str>, pub serial: Option<Box<str>>, pub summary: Option<Box<str>>, pub update_error: Option<Box<str>>, pub update_message: Option<Box<str>>, pub update_state: Option<UpdateState>, pub vendor_id: Box<str>, pub vendor: Box<str>, pub version_bootloader: Option<Box<str>>, pub version_format: Option<VersionFormat>, pub version_lowest: Option<Box<str>>, pub version: Box<str>,
A device that is potentially-supported by fwupd.
Fields
checksum: Option<Box<str>>
created: u64
description: Option<Box<str>>
device_id: DeviceId
flags: DeviceFlags
flashes_left: Option<u32>
guid: Box<[Box<str>]>
icon: Box<[Box<str>]>
install_duration: Option<u32>
instance_ids: Box<[Box<str>]>
modified: Option<u64>
name: Box<str>
parent_device_id: Option<DeviceId>
plugin: Box<str>
serial: Option<Box<str>>
summary: Option<Box<str>>
update_error: Option<Box<str>>
update_message: Option<Box<str>>
update_state: Option<UpdateState>
vendor_id: Box<str>
vendor: Box<str>
version_bootloader: Option<Box<str>>
version_format: Option<VersionFormat>
version_lowest: Option<Box<str>>
version: Box<str>
Implementations
impl Device
[src]
impl Device
[src]pub fn has_flag(&self, flags: DeviceFlags) -> bool
[src]
pub fn has_flag(&self, flags: DeviceFlags) -> bool
[src]Check if the given DeviceFlag
is set.
pub fn is_supported(&self) -> bool
[src]
pub fn is_supported(&self) -> bool
[src]Checks if the device is supported by fwupd.
pub fn is_updateable(&self) -> bool
[src]
pub fn is_updateable(&self) -> bool
[src]Determins if the device is updateable or not.
pub fn needs_reboot(&self) -> bool
[src]
pub fn needs_reboot(&self) -> bool
[src]Checks if the device requires a reboot.
pub fn only_offline(&self) -> bool
[src]
pub fn only_offline(&self) -> bool
[src]Check if the device must be updated offline.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more