pub trait DeviceHost {
type Id: Copy + Eq;
type Name: AsRef<str>;
type Devices: AsRef<[Endpoint<Self::Id, Self::Name>]>;
type Error;
// Required method
fn devices(&self) -> Result<Self::Devices, Self::Error>;
}Expand description
Enumerate an owned snapshot on the control path. Snapshots can outlive a device.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".