#[repr(C)]pub struct pci_express_hotplug_interface {
pub presence_change: Option<unsafe extern "C" fn(dst: *mut conf_object_t, src: *mut conf_object_t, is_present: c_int)>,
pub inject_power_fault: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub press_attention_button: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub set_mrl_state: Option<unsafe extern "C" fn(obj: *mut conf_object_t, locked: c_int)>,
pub get_mrl_state: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>,
}
Fields§
§presence_change: Option<unsafe extern "C" fn(dst: *mut conf_object_t, src: *mut conf_object_t, is_present: c_int)>
This is sent when a device is added or removed from the bus.
inject_power_fault: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§set_mrl_state: Option<unsafe extern "C" fn(obj: *mut conf_object_t, locked: c_int)>
§get_mrl_state: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>
Trait Implementations§
source§impl Clone for pci_express_hotplug_interface
impl Clone for pci_express_hotplug_interface
source§fn clone(&self) -> pci_express_hotplug_interface
fn clone(&self) -> pci_express_hotplug_interface
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 Default for pci_express_hotplug_interface
impl Default for pci_express_hotplug_interface
source§fn default() -> pci_express_hotplug_interface
fn default() -> pci_express_hotplug_interface
Returns the “default value” for a type. Read more
source§impl Hash for pci_express_hotplug_interface
impl Hash for pci_express_hotplug_interface
source§impl Ord for pci_express_hotplug_interface
impl Ord for pci_express_hotplug_interface
source§fn cmp(&self, other: &pci_express_hotplug_interface) -> Ordering
fn cmp(&self, other: &pci_express_hotplug_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for pci_express_hotplug_interface
impl PartialEq for pci_express_hotplug_interface
source§fn eq(&self, other: &pci_express_hotplug_interface) -> bool
fn eq(&self, other: &pci_express_hotplug_interface) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl PartialOrd for pci_express_hotplug_interface
impl PartialOrd for pci_express_hotplug_interface
impl Copy for pci_express_hotplug_interface
impl Eq for pci_express_hotplug_interface
impl StructuralPartialEq for pci_express_hotplug_interface
Auto Trait Implementations§
impl Freeze for pci_express_hotplug_interface
impl RefUnwindSafe for pci_express_hotplug_interface
impl Send for pci_express_hotplug_interface
impl Sync for pci_express_hotplug_interface
impl Unpin for pci_express_hotplug_interface
impl UnwindSafe for pci_express_hotplug_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)