Struct r3::kernel::EventGroup
source · pub struct EventGroup<System>(_)
where
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
sourceimpl<System> Debug for EventGroup<System>where
System: NotSupportedYet,
impl<System> Debug for EventGroup<System>where
System: NotSupportedYet,
sourceimpl<System> EventGroupHandle for EventGroup<System>where
System: NotSupportedYet,
impl<System> EventGroupHandle for EventGroup<System>where
System: NotSupportedYet,
type System = System
type System = System
The system type this object pertains to.
sourceconst unsafe fn from_id(
id: <System as KernelEventGroup>::RawEventGroupId
) -> EventGroup<System>
const unsafe fn from_id(
id: <System as KernelEventGroup>::RawEventGroupId
) -> EventGroup<System>
sourceconst fn id(&self) -> <System as KernelEventGroup>::RawEventGroupId
const fn id(&self) -> <System as KernelEventGroup>::RawEventGroupId
Get the raw
RawEventGroupId
value representing this object.sourceconst fn borrow(
&self
) -> EventGroupRef<'_, <EventGroup<System> as EventGroupHandle>::System>
const fn borrow(
&self
) -> EventGroupRef<'_, <EventGroup<System> as EventGroupHandle>::System>
sourceimpl<System> Hash for EventGroup<System>where
System: NotSupportedYet,
impl<System> Hash for EventGroup<System>where
System: NotSupportedYet,
sourceimpl<System> PartialEq<EventGroup<System>> for EventGroup<System>where
System: NotSupportedYet,
impl<System> PartialEq<EventGroup<System>> for EventGroup<System>where
System: NotSupportedYet,
sourcefn eq(&self, other: &EventGroup<System>) -> bool
fn eq(&self, other: &EventGroup<System>) -> bool
sourceimpl<System> PartialEq<EventGroup<System>> for EventGroupRef<'_, System>where
System: NotSupportedYet,
impl<System> PartialEq<EventGroup<System>> for EventGroupRef<'_, System>where
System: NotSupportedYet,
sourcefn eq(&self, other: &EventGroup<System>) -> bool
fn eq(&self, other: &EventGroup<System>) -> bool
sourceimpl<System> PartialEq<EventGroupRef<'_, System>> for EventGroup<System>where
System: NotSupportedYet,
impl<System> PartialEq<EventGroupRef<'_, System>> for EventGroup<System>where
System: NotSupportedYet,
sourcefn eq(&self, other: &EventGroupRef<'_, System>) -> bool
fn eq(&self, other: &EventGroupRef<'_, System>) -> bool
impl<System> Eq for EventGroup<System>where
System: NotSupportedYet,
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> EventGroupMethods for Twhere
T: EventGroupHandle,
impl<T> EventGroupMethods for Twhere
T: EventGroupHandle,
sourcefn get(&self) -> Result<u32, GetEventGroupError>
fn get(&self) -> Result<u32, GetEventGroupError>
Get the currently set bits.
sourcefn wait(
&self,
bits: u32,
flags: EventGroupWaitFlags
) -> Result<u32, WaitEventGroupError>
fn wait(
&self,
bits: u32,
flags: EventGroupWaitFlags
) -> Result<u32, WaitEventGroupError>
Wait for all or any of the specified bits to be set. Optionally, clear
the specified bits. Read more
sourcefn wait_timeout(
&self,
bits: u32,
flags: EventGroupWaitFlags,
timeout: Duration
) -> Result<u32, WaitEventGroupTimeoutError>
fn wait_timeout(
&self,
bits: u32,
flags: EventGroupWaitFlags,
timeout: Duration
) -> Result<u32, WaitEventGroupTimeoutError>
wait
with timeout.sourcefn poll(
&self,
bits: u32,
flags: EventGroupWaitFlags
) -> Result<u32, PollEventGroupError>
fn poll(
&self,
bits: u32,
flags: EventGroupWaitFlags
) -> Result<u32, PollEventGroupError>
Non-blocking version of
wait
. Returns immediately with
PollEventGroupError::Timeout
if the unblocking condition is not
satisfied. Read more