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: InterfaceClass
pre_plug: hotplug_fn
plug: hotplug_fn
unplug_request: hotplug_fn
unplug: hotplug_fn
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HotplugHandlerClass
impl !Send for HotplugHandlerClass
impl !Sync for HotplugHandlerClass
impl Unpin for HotplugHandlerClass
impl UnwindSafe for HotplugHandlerClass
Blanket Implementations
Mutably borrows from an owned value. Read more