Skip to main content

Device

Trait Device 

Source
pub trait Device: Send + Sync {
    // Required methods
    fn identity(&self) -> &DeviceIdentity;
    fn target_format(&self) -> &TargetPayloadFormat;
    fn target_profile(&self) -> &TargetProfile;
    fn is_healthy(&self) -> bool;
}
Expand description

Acquired device identity, target compatibility, and health.

Required Methods§

Source

fn identity(&self) -> &DeviceIdentity

Immutable identity for this acquired generation.

Source

fn target_format(&self) -> &TargetPayloadFormat

Exact target payload representation admitted by this device.

Source

fn target_profile(&self) -> &TargetProfile

Exact immutable compilation profile admitted by this device.

Source

fn is_healthy(&self) -> bool

Whether new materialization and submission are currently allowed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§