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§

source

type System: KernelEventGroup

The system type this object pertains to.

Required Methods§

source

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.

source

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

Get the raw RawEventGroupId value representing this object.

source

fn borrow(&self) -> EventGroupRef<'_, Self::System>

Implementors§

source§

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

§

type System = System

source§

impl<System> EventGroupHandle for EventGroupRef<'_, System>where System: KernelEventGroup,

§

type System = System