DeviceOps

Trait DeviceOps 

Source
pub trait DeviceOps:
    Clone
    + Default
    + PartialEq
    + Send
    + Sync
    + Debug
    + Device {
    // Provided method
    fn id(&self) -> DeviceId { ... }
}
Expand description

The handle device trait allows to get an id for a backend device.

Provided Methods§

Source

fn id(&self) -> DeviceId

Returns the device id.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§