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§
Sourcefn identity(&self) -> &DeviceIdentity
fn identity(&self) -> &DeviceIdentity
Immutable identity for this acquired generation.
Sourcefn target_format(&self) -> &TargetPayloadFormat
fn target_format(&self) -> &TargetPayloadFormat
Exact target payload representation admitted by this device.
Sourcefn target_profile(&self) -> &TargetProfile
fn target_profile(&self) -> &TargetProfile
Exact immutable compilation profile admitted by this device.
Sourcefn is_healthy(&self) -> bool
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".