Skip to main content

DeviceInfo

Trait DeviceInfo 

Source
pub trait DeviceInfo: Sized {
    type Id;

    // Required methods
    fn id(&self) -> Self::Id;
    fn name(&self) -> &str;
}
Expand description

A device’s identifying metadata.

Required Associated Types§

Source

type Id

This device’s ID type.

Required Methods§

Source

fn id(&self) -> Self::Id

This device’s ID.

Source

fn name(&self) -> &str

This device’s name.

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§