#[repr(C)]pub struct DriverRegistration {
pub version: u64,
pub v1: DriverRegistration_driver_registration_v1,
}Expand description
The |DriverRegistration| is the ABI for drivers to expose themselves to the Driver Framework.
The driver is loaded in as a shared library (also referred to as a DSO), and the global symbol
__fuchsia_driver_registration__ is used by the Driver Framework to locate this
DriverRegistration in the driver library. The framework will use this to initiate a FIDL based
connection over the driver transport into the driver.
Fields§
§version: u64The version is not expected to change since the evolution of the driver APIs will happen on the FIDL side. This simply exists in case we need to evolve the initialization signature for any reason.
v1: DriverRegistration_driver_registration_v1Trait Implementations§
Source§impl Clone for DriverRegistration
impl Clone for DriverRegistration
Source§fn clone(&self) -> DriverRegistration
fn clone(&self) -> DriverRegistration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DriverRegistration
impl Debug for DriverRegistration
Source§impl Default for DriverRegistration
impl Default for DriverRegistration
Source§fn default() -> DriverRegistration
fn default() -> DriverRegistration
Returns the “default value” for a type. Read more
impl Copy for DriverRegistration
Auto Trait Implementations§
impl Freeze for DriverRegistration
impl RefUnwindSafe for DriverRegistration
impl Send for DriverRegistration
impl Sync for DriverRegistration
impl Unpin for DriverRegistration
impl UnsafeUnpin for DriverRegistration
impl UnwindSafe for DriverRegistration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more