Trait r3_core::kernel::raw::KernelEventGroup
source · 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
Required Associated Types§
sourcetype RawEventGroupId: Id
type RawEventGroupId: Id
The type to identify event groups.