pub struct DeviceFlags(/* private fields */);Implementations§
Source§impl DeviceFlags
impl DeviceFlags
Sourcepub const fn with_reset_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_reset_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_reset(self, value: bool) -> Self
pub const fn with_reset(self, value: bool) -> Self
Bits: 0..1
Sourcepub const fn with_pci_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_pci_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_platform_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_platform_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_platform(self, value: bool) -> Self
pub const fn with_platform(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_platform(&mut self, value: bool)
pub const fn set_platform(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn with_amba_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_amba_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_ccw_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ccw_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_ap_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_ap_checked(self, value: bool) -> Result<Self, ()>
Bits: 5..6
Trait Implementations§
Source§impl Clone for DeviceFlags
impl Clone for DeviceFlags
Source§fn clone(&self) -> DeviceFlags
fn clone(&self) -> DeviceFlags
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 Debug for DeviceFlags
impl Debug for DeviceFlags
Source§impl Default for DeviceFlags
impl Default for DeviceFlags
Source§impl From<DeviceFlags> for u32
impl From<DeviceFlags> for u32
Source§fn from(v: DeviceFlags) -> u32
fn from(v: DeviceFlags) -> u32
Converts to this type from the input type.
Source§impl From<u32> for DeviceFlags
impl From<u32> for DeviceFlags
impl Copy for DeviceFlags
Auto Trait Implementations§
impl Freeze for DeviceFlags
impl RefUnwindSafe for DeviceFlags
impl Send for DeviceFlags
impl Sync for DeviceFlags
impl Unpin for DeviceFlags
impl UnsafeUnpin for DeviceFlags
impl UnwindSafe for DeviceFlags
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