Struct r3_core::kernel::event_group::EventGroup
source · #[repr(transparent)]pub struct EventGroup<System: NotSupportedYet>(_);
Expand description
Represents a single owned event group in a system.
This type is ABI-compatible with System::
RawEventGroupId
.
See EventGroupRef
for the borrowed counterpart.
See EventGroupMethods
for the operations provided by this handle
type.
An event group is a set of bits that can be updated and waited for to be set.
Relation to Other Specifications: event group (FreeRTOS), event group (Freescale MQX),
EventFlags
(Mbed OS), events (OSEK/VDX, assigned to each extended task), event (RT-Thread), event set (RTEMS, assigned to each task), Eventflag (μITRON4.0)
Trait Implementations§
source§impl<System: NotSupportedYet> Debug for EventGroup<System>
impl<System: NotSupportedYet> Debug for EventGroup<System>
source§impl<System: NotSupportedYet> EventGroupHandle for EventGroup<System>
impl<System: NotSupportedYet> EventGroupHandle for EventGroup<System>
source§const unsafe fn from_id(
id: <System as KernelEventGroup>::RawEventGroupId
) -> Self
const unsafe fn from_id( id: <System as KernelEventGroup>::RawEventGroupId ) -> Self
source§const fn id(&self) -> System::RawEventGroupId
const fn id(&self) -> System::RawEventGroupId
Get the raw
RawEventGroupId
value representing this object.source§const fn borrow(&self) -> EventGroupRef<'_, Self::System>
const fn borrow(&self) -> EventGroupRef<'_, Self::System>
source§impl<System: NotSupportedYet> Hash for EventGroup<System>
impl<System: NotSupportedYet> Hash for EventGroup<System>
source§impl<System: NotSupportedYet> PartialEq<EventGroup<System>> for EventGroup<System>
impl<System: NotSupportedYet> PartialEq<EventGroup<System>> for EventGroup<System>
source§impl<System: NotSupportedYet> PartialEq<EventGroup<System>> for EventGroupRef<'_, System>
impl<System: NotSupportedYet> PartialEq<EventGroup<System>> for EventGroupRef<'_, System>
source§fn eq(&self, other: &EventGroup<System>) -> bool
fn eq(&self, other: &EventGroup<System>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<System: NotSupportedYet> PartialEq<EventGroupRef<'_, System>> for EventGroup<System>
impl<System: NotSupportedYet> PartialEq<EventGroupRef<'_, System>> for EventGroup<System>
source§fn eq(&self, other: &EventGroupRef<'_, System>) -> bool
fn eq(&self, other: &EventGroupRef<'_, System>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<System: NotSupportedYet> Eq for EventGroup<System>
Auto Trait Implementations§
impl<System> RefUnwindSafe for EventGroup<System>where <System as KernelEventGroup>::RawEventGroupId: RefUnwindSafe,
impl<System> Send for EventGroup<System>
impl<System> Sync for EventGroup<System>
impl<System> Unpin for EventGroup<System>where <System as KernelEventGroup>::RawEventGroupId: Unpin,
impl<System> UnwindSafe for EventGroup<System>where <System as KernelEventGroup>::RawEventGroupId: UnwindSafe,
Blanket Implementations§
source§impl<T> EventGroupMethods for Twhere
T: EventGroupHandle,
impl<T> EventGroupMethods for Twhere T: EventGroupHandle,
source§fn set(&self, bits: EventGroupBits) -> Result<(), UpdateEventGroupError>
fn set(&self, bits: EventGroupBits) -> Result<(), UpdateEventGroupError>
Set the specified bits.
source§fn clear(&self, bits: EventGroupBits) -> Result<(), UpdateEventGroupError>
fn clear(&self, bits: EventGroupBits) -> Result<(), UpdateEventGroupError>
Clear the specified bits.
source§fn get(&self) -> Result<EventGroupBits, GetEventGroupError>
fn get(&self) -> Result<EventGroupBits, GetEventGroupError>
Get the currently set bits.
source§fn wait(
&self,
bits: EventGroupBits,
flags: EventGroupWaitFlags
) -> Result<EventGroupBits, WaitEventGroupError>
fn wait( &self, bits: EventGroupBits, flags: EventGroupWaitFlags ) -> Result<EventGroupBits, WaitEventGroupError>
Wait for all or any of the specified bits to be set. Optionally, clear
the specified bits. Read more
source§fn wait_timeout(
&self,
bits: EventGroupBits,
flags: EventGroupWaitFlags,
timeout: Duration
) -> Result<EventGroupBits, WaitEventGroupTimeoutError>
fn wait_timeout( &self, bits: EventGroupBits, flags: EventGroupWaitFlags, timeout: Duration ) -> Result<EventGroupBits, WaitEventGroupTimeoutError>
wait
with timeout.source§fn poll(
&self,
bits: EventGroupBits,
flags: EventGroupWaitFlags
) -> Result<EventGroupBits, PollEventGroupError>
fn poll( &self, bits: EventGroupBits, flags: EventGroupWaitFlags ) -> Result<EventGroupBits, PollEventGroupError>
Non-blocking version of
wait
. Returns immediately with
PollEventGroupError::Timeout
if the unblocking condition is not
satisfied.