Struct panda_sys::HotplugHandlerClass [−][src]
#[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: InterfaceClasspre_plug: hotplug_fnplug: hotplug_fnunplug_request: hotplug_fnunplug: hotplug_fnTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HotplugHandlerClassimpl !Send for HotplugHandlerClassimpl !Sync for HotplugHandlerClassimpl Unpin for HotplugHandlerClassimpl UnwindSafe for HotplugHandlerClassBlanket Implementations
Mutably borrows from an owned value. Read more