pub trait DeviceIdAnyCompatContext<D: Device>: DeviceIdContext<D> + DeviceIdContext<AnyDevice, DeviceId: From<<Self as DeviceIdContext<D>>::DeviceId>, WeakDeviceId: From<<Self as DeviceIdContext<D>>::WeakDeviceId>> { }Expand description
A marker trait tying DeviceIdContext implementations.
To call into the IP layer, we need to be able to represent device
identifiers in the AnyDevice domain. This trait is a statement that a
DeviceIdContext in some domain D has its identifiers convertible into
the AnyDevice domain with From bounds.
It is provided as a blanket implementation for DeviceIdContexts that
fulfill the conversion.
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.