#[non_exhaustive]#[repr(u8)]pub enum CapCfgType {
Common = 1,
Notify = 2,
Isr = 3,
Device = 4,
Pci = 5,
SharedMemory = 8,
Vendor = 9,
Unknown(u8),
}
Expand description
PCI Capability Configuration Type
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Common = 1
Common configuration
Notify = 2
Notifications
Isr = 3
ISR Status
Device = 4
Device specific configuration
Pci = 5
PCI configuration access
Shared memory region
Vendor = 9
Vendor-specific data
Unknown(u8)
Unknown device
Trait Implementations§
Source§impl Clone for CapCfgType
impl Clone for CapCfgType
Source§fn clone(&self) -> CapCfgType
fn clone(&self) -> CapCfgType
Returns a copy 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 CapCfgType
impl Debug for CapCfgType
Source§impl From<CapCfgType> for u8
impl From<CapCfgType> for u8
Source§fn from(enum_value: CapCfgType) -> Self
fn from(enum_value: CapCfgType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for CapCfgType
impl From<u8> for CapCfgType
Source§impl FromPrimitive for CapCfgType
impl FromPrimitive for CapCfgType
Source§impl PartialEq for CapCfgType
impl PartialEq for CapCfgType
impl Copy for CapCfgType
impl Eq for CapCfgType
impl StructuralPartialEq for CapCfgType
Auto Trait Implementations§
impl Freeze for CapCfgType
impl RefUnwindSafe for CapCfgType
impl Send for CapCfgType
impl Sync for CapCfgType
impl Unpin for CapCfgType
impl UnwindSafe for CapCfgType
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