#[repr(C)]pub struct HotplugHandlerClass {
pub parent: InterfaceClass,
pub pre_plug: hotplug_fn,
pub plug: hotplug_fn,
pub unplug_request: hotplug_fn,
pub unplug: hotplug_fn,
}Expand description
HotplugDeviceClass:
Interface to be implemented by a device performing hardware (un)plug functions.
@parent: Opaque parent interface. @pre_plug: pre plug callback called at start of device.realize(true) @plug: plug callback called at end of device.realize(true). @unplug_request: unplug request callback. Used as a means to initiate device unplug for devices that require asynchronous unplug handling. @unplug: unplug callback. Used for device removal with devices that implement asynchronous and synchronous (surprise) removal.
Fields§
§parent: InterfaceClass§pre_plug: hotplug_fn§plug: hotplug_fn§unplug_request: hotplug_fn§unplug: hotplug_fnTrait Implementations§
Source§impl Clone for HotplugHandlerClass
impl Clone for HotplugHandlerClass
Source§fn clone(&self) -> HotplugHandlerClass
fn clone(&self) -> HotplugHandlerClass
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 HotplugHandlerClass
impl Debug for HotplugHandlerClass
impl Copy for HotplugHandlerClass
Auto Trait Implementations§
impl Freeze for HotplugHandlerClass
impl RefUnwindSafe for HotplugHandlerClass
impl !Send for HotplugHandlerClass
impl !Sync for HotplugHandlerClass
impl Unpin for HotplugHandlerClass
impl UnwindSafe for HotplugHandlerClass
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