Struct fwupd_dbus::DeviceFlags [−][src]
pub struct DeviceFlags { /* fields omitted */ }
Describes attributes of a device.
Implementations
impl DeviceFlags
[src]
impl DeviceFlags
[src]pub const INTERNAL: DeviceFlags
[src]
pub const INTERNAL: DeviceFlags
[src]Device cannot be removed easily
pub const UPDATABLE: DeviceFlags
[src]
pub const UPDATABLE: DeviceFlags
[src]Device is updatable in this or any other mode
pub const ONLY_OFFLINE: DeviceFlags
[src]
pub const ONLY_OFFLINE: DeviceFlags
[src]Update can only be done from offline mode
pub const REQUIRE_AC: DeviceFlags
[src]
pub const REQUIRE_AC: DeviceFlags
[src]Requires AC power
pub const LOCKED: DeviceFlags
[src]
pub const LOCKED: DeviceFlags
[src]Is locked and can be unlocked
pub const SUPPORTED: DeviceFlags
[src]
pub const SUPPORTED: DeviceFlags
[src]Is found in current metadata
pub const NEEDS_BOOTLOADER: DeviceFlags
[src]
pub const NEEDS_BOOTLOADER: DeviceFlags
[src]Requires a bootloader mode to be manually enabled by the user
pub const REGISTERED: DeviceFlags
[src]
pub const REGISTERED: DeviceFlags
[src]Has been registered with other plugins
pub const NEEDS_REBOOT: DeviceFlags
[src]
pub const NEEDS_REBOOT: DeviceFlags
[src]Requires a reboot to apply firmware or to reload hardware
pub const REPORTED: DeviceFlags
[src]
pub const REPORTED: DeviceFlags
[src]Has been reported to a metadata server
pub const NOTIFIED: DeviceFlags
[src]
pub const NOTIFIED: DeviceFlags
[src]User has been notified
pub const USE_RUNTIME_VERSION: DeviceFlags
[src]
pub const USE_RUNTIME_VERSION: DeviceFlags
[src]Always use the runtime version rather than the bootloader
pub const INSTALL_PARENT_FIRST: DeviceFlags
[src]
pub const INSTALL_PARENT_FIRST: DeviceFlags
[src]Install composite firmware on the parent before the child
pub const IS_BOOTLOADER: DeviceFlags
[src]
pub const IS_BOOTLOADER: DeviceFlags
[src]Is currently in bootloader mode
pub const WAIT_FOR_REPLUG: DeviceFlags
[src]
pub const WAIT_FOR_REPLUG: DeviceFlags
[src]The hardware is waiting to be replugged
pub const IGNORE_VALIDATION: DeviceFlags
[src]
pub const IGNORE_VALIDATION: DeviceFlags
[src]Ignore validation safety checks when flashing this device
pub const TRUSTED: DeviceFlags
[src]
pub const TRUSTED: DeviceFlags
[src]Extra metadata can be exposed about this device
pub const NEEDS_SHUTDOWN: DeviceFlags
[src]
pub const NEEDS_SHUTDOWN: DeviceFlags
[src]Requires system shutdown to apply firmware
pub const ANOTHER_WRITE_REQUIRED: DeviceFlags
[src]
pub const ANOTHER_WRITE_REQUIRED: DeviceFlags
[src]Requires the update to be retried with a new plugin
pub const NO_AUTO_INSTANCE_IDS: DeviceFlags
[src]
pub const NO_AUTO_INSTANCE_IDS: DeviceFlags
[src]Do not add instance IDs from the device baseclass
pub const NEEDS_ACTIVATION: DeviceFlags
[src]
pub const NEEDS_ACTIVATION: DeviceFlags
[src]Device update needs to be separately activated
pub const ENSURE_SEMVER: DeviceFlags
[src]
pub const ENSURE_SEMVER: DeviceFlags
[src]Ensure the version is a valid semantic version, e.g. numbers separated with dots
pub const UNKNOWN: DeviceFlags
[src]
pub const fn empty() -> DeviceFlags
[src]
pub const fn empty() -> DeviceFlags
[src]Returns an empty set of flags
pub const fn all() -> DeviceFlags
[src]
pub const fn all() -> DeviceFlags
[src]Returns the set containing all flags.
pub fn from_bits(bits: u64) -> Option<DeviceFlags>
[src]
pub fn from_bits(bits: u64) -> Option<DeviceFlags>
[src]Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u64) -> DeviceFlags
[src]
pub const fn from_bits_truncate(bits: u64) -> DeviceFlags
[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u64) -> DeviceFlags
[src]
pub const unsafe fn from_bits_unchecked(bits: u64) -> DeviceFlags
[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: DeviceFlags) -> bool
[src]
pub const fn intersects(&self, other: DeviceFlags) -> bool
[src]Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: DeviceFlags) -> bool
[src]
pub const fn contains(&self, other: DeviceFlags) -> bool
[src]Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: DeviceFlags)
[src]
pub fn insert(&mut self, other: DeviceFlags)
[src]Inserts the specified flags in-place.
pub fn remove(&mut self, other: DeviceFlags)
[src]
pub fn remove(&mut self, other: DeviceFlags)
[src]Removes the specified flags in-place.
pub fn toggle(&mut self, other: DeviceFlags)
[src]
pub fn toggle(&mut self, other: DeviceFlags)
[src]Toggles the specified flags in-place.
pub fn set(&mut self, other: DeviceFlags, value: bool)
[src]
pub fn set(&mut self, other: DeviceFlags, value: bool)
[src]Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for DeviceFlags
[src]
impl Binary for DeviceFlags
[src]impl BitAnd<DeviceFlags> for DeviceFlags
[src]
impl BitAnd<DeviceFlags> for DeviceFlags
[src]fn bitand(self, other: DeviceFlags) -> DeviceFlags
[src]
fn bitand(self, other: DeviceFlags) -> DeviceFlags
[src]Returns the intersection between the two sets of flags.
type Output = DeviceFlags
type Output = DeviceFlags
The resulting type after applying the &
operator.
impl BitAndAssign<DeviceFlags> for DeviceFlags
[src]
impl BitAndAssign<DeviceFlags> for DeviceFlags
[src]fn bitand_assign(&mut self, other: DeviceFlags)
[src]
fn bitand_assign(&mut self, other: DeviceFlags)
[src]Disables all flags disabled in the set.
impl BitOr<DeviceFlags> for DeviceFlags
[src]
impl BitOr<DeviceFlags> for DeviceFlags
[src]fn bitor(self, other: DeviceFlags) -> DeviceFlags
[src]
fn bitor(self, other: DeviceFlags) -> DeviceFlags
[src]Returns the union of the two sets of flags.
type Output = DeviceFlags
type Output = DeviceFlags
The resulting type after applying the |
operator.
impl BitOrAssign<DeviceFlags> for DeviceFlags
[src]
impl BitOrAssign<DeviceFlags> for DeviceFlags
[src]fn bitor_assign(&mut self, other: DeviceFlags)
[src]
fn bitor_assign(&mut self, other: DeviceFlags)
[src]Adds the set of flags.
impl BitXor<DeviceFlags> for DeviceFlags
[src]
impl BitXor<DeviceFlags> for DeviceFlags
[src]fn bitxor(self, other: DeviceFlags) -> DeviceFlags
[src]
fn bitxor(self, other: DeviceFlags) -> DeviceFlags
[src]Returns the left flags, but with all the right flags toggled.
type Output = DeviceFlags
type Output = DeviceFlags
The resulting type after applying the ^
operator.
impl BitXorAssign<DeviceFlags> for DeviceFlags
[src]
impl BitXorAssign<DeviceFlags> for DeviceFlags
[src]fn bitxor_assign(&mut self, other: DeviceFlags)
[src]
fn bitxor_assign(&mut self, other: DeviceFlags)
[src]Toggles the set of flags.
impl Clone for DeviceFlags
[src]
impl Clone for DeviceFlags
[src]fn clone(&self) -> DeviceFlags
[src]
fn clone(&self) -> DeviceFlags
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for DeviceFlags
[src]
impl Debug for DeviceFlags
[src]impl Default for DeviceFlags
[src]
impl Default for DeviceFlags
[src]impl Extend<DeviceFlags> for DeviceFlags
[src]
impl Extend<DeviceFlags> for DeviceFlags
[src]fn extend<T: IntoIterator<Item = DeviceFlags>>(&mut self, iterator: T)
[src]
fn extend<T: IntoIterator<Item = DeviceFlags>>(&mut self, iterator: T)
[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)
[src]
fn extend_one(&mut self, item: A)
[src]extend_one
)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<DeviceFlags> for DeviceFlags
[src]
impl FromIterator<DeviceFlags> for DeviceFlags
[src]fn from_iter<T: IntoIterator<Item = DeviceFlags>>(iterator: T) -> DeviceFlags
[src]
fn from_iter<T: IntoIterator<Item = DeviceFlags>>(iterator: T) -> DeviceFlags
[src]Creates a value from an iterator. Read more
impl Hash for DeviceFlags
[src]
impl Hash for DeviceFlags
[src]impl LowerHex for DeviceFlags
[src]
impl LowerHex for DeviceFlags
[src]impl Not for DeviceFlags
[src]
impl Not for DeviceFlags
[src]fn not(self) -> DeviceFlags
[src]
fn not(self) -> DeviceFlags
[src]Returns the complement of this set of flags.
type Output = DeviceFlags
type Output = DeviceFlags
The resulting type after applying the !
operator.
impl Octal for DeviceFlags
[src]
impl Octal for DeviceFlags
[src]impl Ord for DeviceFlags
[src]
impl Ord for DeviceFlags
[src]impl PartialEq<DeviceFlags> for DeviceFlags
[src]
impl PartialEq<DeviceFlags> for DeviceFlags
[src]fn eq(&self, other: &DeviceFlags) -> bool
[src]
fn eq(&self, other: &DeviceFlags) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &DeviceFlags) -> bool
[src]
fn ne(&self, other: &DeviceFlags) -> bool
[src]This method tests for !=
.
impl PartialOrd<DeviceFlags> for DeviceFlags
[src]
impl PartialOrd<DeviceFlags> for DeviceFlags
[src]fn partial_cmp(&self, other: &DeviceFlags) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &DeviceFlags) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Sub<DeviceFlags> for DeviceFlags
[src]
impl Sub<DeviceFlags> for DeviceFlags
[src]fn sub(self, other: DeviceFlags) -> DeviceFlags
[src]
fn sub(self, other: DeviceFlags) -> DeviceFlags
[src]Returns the set difference of the two sets of flags.
type Output = DeviceFlags
type Output = DeviceFlags
The resulting type after applying the -
operator.
impl SubAssign<DeviceFlags> for DeviceFlags
[src]
impl SubAssign<DeviceFlags> for DeviceFlags
[src]fn sub_assign(&mut self, other: DeviceFlags)
[src]
fn sub_assign(&mut self, other: DeviceFlags)
[src]Disables all flags enabled in the set.
impl UpperHex for DeviceFlags
[src]
impl UpperHex for DeviceFlags
[src]impl Copy for DeviceFlags
[src]
impl Eq for DeviceFlags
[src]
impl StructuralEq for DeviceFlags
[src]
impl StructuralPartialEq for DeviceFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceFlags
impl Send for DeviceFlags
impl Sync for DeviceFlags
impl Unpin for DeviceFlags
impl UnwindSafe for DeviceFlags
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