Struct r3::kernel::event_group::EventGroupDefiner
source · pub struct EventGroupDefiner<System>where
System: KernelEventGroup,{ /* private fields */ }
Expand description
The definer (static builder) for EventGroupRef
.
Implementations§
source§impl<System> EventGroupDefiner<System>where
System: KernelEventGroup,
impl<System> EventGroupDefiner<System>where System: KernelEventGroup,
sourcepub const fn initial(self, initial: u32) -> EventGroupDefiner<System>
pub const fn initial(self, initial: u32) -> EventGroupDefiner<System>
Specify the initial bit pattern.
sourcepub const fn queue_order(
self,
queue_order: QueueOrder
) -> EventGroupDefiner<System>
pub const fn queue_order( self, queue_order: QueueOrder ) -> EventGroupDefiner<System>
Specify how tasks are sorted in the wait queue of the event group.
Defaults to QueueOrder::TaskPriority
when unspecified.
sourcepub const fn finish<C>(
self,
c: &mut Cfg<'_, C>
) -> EventGroupRef<'static, System>where
C: CfgEventGroup<System = System>,
pub const fn finish<C>( self, c: &mut Cfg<'_, C> ) -> EventGroupRef<'static, System>where C: CfgEventGroup<System = System>,
Complete the definition of an event group, returning a reference to the event group.