pub struct PciHotplugSlot {
pub slot_id: u32,
pub occupied: bool,
pub device_addr: u32,
pub power_indicator: PowerIndicator,
pub attention_indicator: AttentionIndicator,
pub powered: bool,
pub surprise_removal_supported: bool,
}Expand description
A PCI hot-plug slot
Fields§
§slot_id: u32Slot identifier
occupied: boolWhether a device is present in the slot
device_addr: u32PCI address of the device (if present)
power_indicator: PowerIndicatorPower indicator state
attention_indicator: AttentionIndicatorAttention indicator state
powered: boolWhether the slot has power
surprise_removal_supported: boolWhether surprise removal is supported
Implementations§
Source§impl PciHotplugSlot
impl PciHotplugSlot
Sourcepub fn with_surprise_removal(slot_id: u32) -> Self
pub fn with_surprise_removal(slot_id: u32) -> Self
Create a slot with surprise removal support
Trait Implementations§
Source§impl Clone for PciHotplugSlot
impl Clone for PciHotplugSlot
Source§fn clone(&self) -> PciHotplugSlot
fn clone(&self) -> PciHotplugSlot
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PciHotplugSlot
impl Debug for PciHotplugSlot
Source§impl Default for PciHotplugSlot
impl Default for PciHotplugSlot
Source§fn default() -> PciHotplugSlot
fn default() -> PciHotplugSlot
Returns the “default value” for a type. Read more
impl Copy for PciHotplugSlot
Auto Trait Implementations§
impl Freeze for PciHotplugSlot
impl RefUnwindSafe for PciHotplugSlot
impl Send for PciHotplugSlot
impl Sync for PciHotplugSlot
impl Unpin for PciHotplugSlot
impl UnwindSafe for PciHotplugSlot
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)