pub struct BLEComponent<A: Alarm<'static> + 'static, B: BleAdvertisementDriver<'static> + BleConfig + 'static> { /* private fields */ }
Implementations§
Source§impl<A: Alarm<'static> + 'static, B: BleAdvertisementDriver<'static> + BleConfig + 'static> BLEComponent<A, B>
impl<A: Alarm<'static> + 'static, B: BleAdvertisementDriver<'static> + BleConfig + 'static> BLEComponent<A, B>
Trait Implementations§
Source§impl<A: Alarm<'static> + 'static, B: BleAdvertisementDriver<'static> + BleConfig + 'static> Component for BLEComponent<A, B>
impl<A: Alarm<'static> + 'static, B: BleAdvertisementDriver<'static> + BleConfig + 'static> Component for BLEComponent<A, B>
Source§type StaticInput = (&'static mut MaybeUninit<VirtualMuxAlarm<'static, A>>, &'static mut MaybeUninit<BLE<'static, B, VirtualMuxAlarm<'static, A>>>, &'static mut MaybeUninit<[u8; 39]>)
type StaticInput = (&'static mut MaybeUninit<VirtualMuxAlarm<'static, A>>, &'static mut MaybeUninit<BLE<'static, B, VirtualMuxAlarm<'static, A>>>, &'static mut MaybeUninit<[u8; 39]>)
An optional type to specify the chip or board specific static memory
that a component needs to setup the output object(s). This is the memory
that
crate::static_buf!()
would normally setup, but generic
components cannot setup static buffers for types which are
chip-dependent, so those buffers have to be passed in manually, and the
Component::StaticInput
type makes this possible.Source§type Output = &'static BLE<'static, B, VirtualMuxAlarm<'static, A>>
type Output = &'static BLE<'static, B, VirtualMuxAlarm<'static, A>>
The type (e.g., capsule, peripheral) that this implementation of
Component
produces via Component::finalize()
. This is typically
a static reference (&'static
).Source§fn finalize(self, s: Self::StaticInput) -> Self::Output
fn finalize(self, s: Self::StaticInput) -> Self::Output
Auto Trait Implementations§
impl<A, B> Freeze for BLEComponent<A, B>
impl<A, B> !RefUnwindSafe for BLEComponent<A, B>
impl<A, B> !Send for BLEComponent<A, B>
impl<A, B> !Sync for BLEComponent<A, B>
impl<A, B> Unpin for BLEComponent<A, B>
impl<A, B> !UnwindSafe for BLEComponent<A, B>
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