pub unsafe trait KernelEventGroup: KernelBase {
    type RawEventGroupId: Id;

    // Required methods
    unsafe fn raw_event_group_set(
        this: Self::RawEventGroupId,
        bits: EventGroupBits
    ) -> Result<(), UpdateEventGroupError>;
    unsafe fn raw_event_group_clear(
        this: Self::RawEventGroupId,
        bits: EventGroupBits
    ) -> Result<(), UpdateEventGroupError>;
    unsafe fn raw_event_group_get(
        this: Self::RawEventGroupId
    ) -> Result<EventGroupBits, GetEventGroupError>;
    unsafe fn raw_event_group_wait(
        this: Self::RawEventGroupId,
        bits: EventGroupBits,
        flags: EventGroupWaitFlags
    ) -> Result<EventGroupBits, WaitEventGroupError>;
    unsafe fn raw_event_group_wait_timeout(
        this: Self::RawEventGroupId,
        bits: EventGroupBits,
        flags: EventGroupWaitFlags,
        timeout: Duration
    ) -> Result<EventGroupBits, WaitEventGroupTimeoutError>;
    unsafe fn raw_event_group_poll(
        this: Self::RawEventGroupId,
        bits: EventGroupBits,
        flags: EventGroupWaitFlags
    ) -> Result<EventGroupBits, PollEventGroupError>;
}
Expand description

Provides access to the event group API exposed by a kernel.

Safety

See the Safety section of the module documentation.

Required Associated Types§

source

type RawEventGroupId: Id

The type to identify event groups.

Required Methods§

source

unsafe fn raw_event_group_set( this: Self::RawEventGroupId, bits: EventGroupBits ) -> Result<(), UpdateEventGroupError>

Implements EventGroup::set.

Safety

See the Safety section of the module documentation.

source

unsafe fn raw_event_group_clear( this: Self::RawEventGroupId, bits: EventGroupBits ) -> Result<(), UpdateEventGroupError>

Implements EventGroup::clear.

Safety

See the Safety section of the module documentation.

source

unsafe fn raw_event_group_get( this: Self::RawEventGroupId ) -> Result<EventGroupBits, GetEventGroupError>

Implements EventGroup::get.

Safety

See the Safety section of the module documentation.

source

unsafe fn raw_event_group_wait( this: Self::RawEventGroupId, bits: EventGroupBits, flags: EventGroupWaitFlags ) -> Result<EventGroupBits, WaitEventGroupError>

Implements EventGroup::wait.

Safety

See the Safety section of the module documentation.

source

unsafe fn raw_event_group_wait_timeout( this: Self::RawEventGroupId, bits: EventGroupBits, flags: EventGroupWaitFlags, timeout: Duration ) -> Result<EventGroupBits, WaitEventGroupTimeoutError>

Implements EventGroup::wait_timeout.

Safety

See the Safety section of the module documentation.

source

unsafe fn raw_event_group_poll( this: Self::RawEventGroupId, bits: EventGroupBits, flags: EventGroupWaitFlags ) -> Result<EventGroupBits, PollEventGroupError>

Implements EventGroup::poll.

Safety

See the Safety section of the module documentation.

Implementors§