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_fn

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.