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§

source§

impl<System> Debug for EventGroup<System>where System: NotSupportedYet,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<System> EventGroupHandle for EventGroup<System>where System: NotSupportedYet,

§

type System = System

The system type this object pertains to.
source§

const unsafe fn from_id( id: <System as KernelEventGroup>::RawEventGroupId ) -> EventGroup<System>

Construct a EventGroup from RawEventGroupId. Read more
source§

const fn id(&self) -> <System as KernelEventGroup>::RawEventGroupId

Get the raw RawEventGroupId value representing this object.
source§

const fn borrow( &self ) -> EventGroupRef<'_, <EventGroup<System> as EventGroupHandle>::System>

source§

impl<System> Hash for EventGroup<System>where System: NotSupportedYet,

source§

fn hash<H>(&self, state: &mut H)where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<System> PartialEq<EventGroup<System>> for EventGroup<System>where System: NotSupportedYet,

source§

fn eq(&self, other: &EventGroup<System>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<System> PartialEq<EventGroup<System>> for EventGroupRef<'_, System>where System: NotSupportedYet,

source§

fn eq(&self, other: &EventGroup<System>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<System> PartialEq<EventGroupRef<'_, System>> for EventGroup<System>where System: NotSupportedYet,

source§

fn eq(&self, other: &EventGroupRef<'_, System>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> EventGroupMethods for Twhere T: EventGroupHandle,

source§

fn set(&self, bits: u32) -> Result<(), UpdateEventGroupError>

Set the specified bits.
source§

fn clear(&self, bits: u32) -> Result<(), UpdateEventGroupError>

Clear the specified bits.
source§

fn get(&self) -> Result<u32, GetEventGroupError>

Get the currently set bits.
source§

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
source§

fn wait_timeout( &self, bits: u32, flags: EventGroupWaitFlags, timeout: Duration ) -> Result<u32, WaitEventGroupTimeoutError>

wait with timeout.
source§

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.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.