pub struct Registration<DEV, DRIV = &'static DEV>{
reg: saul_reg_t,
_phantom: PhantomData<(&'static DEV, DRIV)>,
}
Available on
riot_module_saul
only.Fields§
§reg: saul_reg_t
§_phantom: PhantomData<(&'static DEV, DRIV)>
Implementations§
Source§impl<DEV, DRIV> Registration<DEV, DRIV>
impl<DEV, DRIV> Registration<DEV, DRIV>
pub fn new( driver: &'static Driver<DEV, DRIV>, device: &'static DEV, name: Option<&'static CStr>, ) -> Self
Sourcepub fn register_static(&'static mut self)
pub fn register_static(&'static mut self)
Hook the registration in with the global SAUL list
If you can not obtain a &’static, you may consider register_and_then()
.
Trait Implementations§
impl<DEV, DRIV> Send for Registration<DEV, DRIV>
Auto Trait Implementations§
impl<DEV, DRIV> Freeze for Registration<DEV, DRIV>where
&'static DEV: Sized,
impl<DEV, DRIV> RefUnwindSafe for Registration<DEV, DRIV>
impl<DEV, DRIV = &'static DEV> !Sync for Registration<DEV, DRIV>
impl<DEV, DRIV> Unpin for Registration<DEV, DRIV>
impl<DEV, DRIV> UnwindSafe for Registration<DEV, DRIV>
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
Source§impl<T> IntoSwitch for T
impl<T> IntoSwitch for T
Source§fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
Source§fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes