Struct riot_wrappers::saul::registration::Driver
source · pub struct Driver<DEV, DRIV = &'static DEV>{ /* private fields */ }
Available on
riot_module_saul
only.Expand description
A typed saul_driver_t, created from a Drivable’s build_driver() static method, and used as statically lived references registrations.
DEV
indicates the type of the item pointed to in the registration’s field, which is usually the
Drivable itself, but may be specialized by AsRef into a particular drivable, eg. when a device
is used by two drivers representing different aspects of the device.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<DEV, DRIV> RefUnwindSafe for Driver<DEV, DRIV>where
DEV: RefUnwindSafe,
DRIV: RefUnwindSafe,
impl<DEV, DRIV> Sync for Driver<DEV, DRIV>where
DRIV: Sync,
impl<DEV, DRIV> Unpin for Driver<DEV, DRIV>
impl<DEV, DRIV> UnwindSafe for Driver<DEV, DRIV>where
DEV: UnwindSafe,
DRIV: UnwindSafe,
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