Trait r3_core::kernel::event_group::EventGroupHandle
source · pub unsafe trait EventGroupHandle {
type System: KernelEventGroup;
// Required methods
unsafe fn from_id(
id: <Self::System as KernelEventGroup>::RawEventGroupId
) -> Self;
fn id(&self) -> <Self::System as KernelEventGroup>::RawEventGroupId;
fn borrow(&self) -> EventGroupRef<'_, Self::System>;
}
Expand description
The trait for safe wrappers of System::
RawEventGroupId
, i.e.,
EventGroup
and EventGroupRef
.
Required Associated Types§
sourcetype System: KernelEventGroup
type System: KernelEventGroup
The system type this object pertains to.
Required Methods§
sourceunsafe fn from_id(
id: <Self::System as KernelEventGroup>::RawEventGroupId
) -> Self
unsafe fn from_id( id: <Self::System as KernelEventGroup>::RawEventGroupId ) -> Self
Construct a EventGroup
from RawEventGroupId
.
Safety
This function is marked as unsafe
to prevent safe code from
compromising object safety.
sourcefn id(&self) -> <Self::System as KernelEventGroup>::RawEventGroupId
fn id(&self) -> <Self::System as KernelEventGroup>::RawEventGroupId
Get the raw RawEventGroupId
value representing this object.
sourcefn borrow(&self) -> EventGroupRef<'_, Self::System>
fn borrow(&self) -> EventGroupRef<'_, Self::System>
Borrow self
as EventGroupRef
.