pub trait DeviceChild: DeviceChildHandle {
type ConcreteDevice: Device;
// Required method
fn device(&self) -> &Self::ConcreteDevice;
}Expand description
Child of a device object
Required Associated Types§
Sourcetype ConcreteDevice: Device
type ConcreteDevice: Device
A concrete type of the parent device object.
Required Methods§
Sourcefn device(&self) -> &Self::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Retrieve a reference to a device object that creates this object
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".