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

    // Required methods
    unsafe fn raw_event_group_set(
        this: Self::RawEventGroupId,
        bits: u32
    ) -> Result<(), UpdateEventGroupError>;
    unsafe fn raw_event_group_clear(
        this: Self::RawEventGroupId,
        bits: u32
    ) -> Result<(), UpdateEventGroupError>;
    unsafe fn raw_event_group_get(
        this: Self::RawEventGroupId
    ) -> Result<u32, GetEventGroupError>;
    unsafe fn raw_event_group_wait(
        this: Self::RawEventGroupId,
        bits: u32,
        flags: EventGroupWaitFlags
    ) -> Result<u32, WaitEventGroupError>;
    unsafe fn raw_event_group_wait_timeout(
        this: Self::RawEventGroupId,
        bits: u32,
        flags: EventGroupWaitFlags,
        timeout: Duration
    ) -> Result<u32, WaitEventGroupTimeoutError>;
    unsafe fn raw_event_group_poll(
        this: Self::RawEventGroupId,
        bits: u32,
        flags: EventGroupWaitFlags
    ) -> Result<u32, 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: u32 ) -> 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: u32 ) -> 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<u32, GetEventGroupError>

Implements EventGroup::get.

Safety

See the Safety section of the module documentation.

source

unsafe fn raw_event_group_wait( this: Self::RawEventGroupId, bits: u32, flags: EventGroupWaitFlags ) -> Result<u32, 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: u32, flags: EventGroupWaitFlags, timeout: Duration ) -> Result<u32, 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: u32, flags: EventGroupWaitFlags ) -> Result<u32, PollEventGroupError>

Implements EventGroup::poll.

Safety

See the Safety section of the module documentation.

Implementors§