Trait kernel::registry::RegisteredDriver
source · pub trait RegisteredDriver {
type Request: 'static;
type Response: 'static;
type Error: 'static;
const UUID: Uuid;
// Provided method
fn type_id() -> RegistryType { ... }
}
Expand description
A marker trait designating a registerable driver service.
Typically used with Registry::register or Registry::register_konly. Can typically be retrieved by Registry::get or Registry::get_userspace After the service has been registered.
Required Associated Types§
Required Associated Constants§
Provided Methods§
sourcefn type_id() -> RegistryType
fn type_id() -> RegistryType
Get the type_id used to make sure that driver instances are correctly typed.
Corresponds to the same type ID as (Self::Request, Self::Response, Self::Error)