pub trait EventGroupMethods: EventGroupHandle {
    fn set(&self, bits: EventGroupBits) -> Result<(), UpdateEventGroupError> { ... }
    fn clear(&self, bits: EventGroupBits) -> Result<(), UpdateEventGroupError> { ... }
    fn get(&self) -> Result<EventGroupBits, GetEventGroupError> { ... }
    fn wait(
        &self,
        bits: EventGroupBits,
        flags: EventGroupWaitFlags
    ) -> Result<EventGroupBits, WaitEventGroupError> { ... } fn wait_timeout(
        &self,
        bits: EventGroupBits,
        flags: EventGroupWaitFlags,
        timeout: Duration
    ) -> Result<EventGroupBits, WaitEventGroupTimeoutError> { ... } fn poll(
        &self,
        bits: EventGroupBits,
        flags: EventGroupWaitFlags
    ) -> Result<EventGroupBits, PollEventGroupError> { ... } }
Expand description

The supported operations on EventGroupHandle.

Provided Methods

Set the specified bits.

Clear the specified bits.

Get the currently set bits.

Wait for all or any of the specified bits to be set. Optionally, clear the specified bits.

Returns the currently set bits. If EventGroupWaitFlags::CLEAR is specified, this method returns the bits before clearing.

This system service may block. Therefore, calling this method is not allowed in a non-waitable context and will return Err(BadContext).

wait with timeout.

Non-blocking version of wait. Returns immediately with PollEventGroupError::Timeout if the unblocking condition is not satisfied.

Implementors