pub trait RegisterInternalEvent: Sized {
    type Handle: InternalEventHandle;

    // Required method
    fn register(self) -> Self::Handle;

    // Provided method
    fn name(&self) -> Option<&'static str> { ... }
}

Required Associated Types§

Required Methods§

source

fn register(self) -> Self::Handle

Provided Methods§

source

fn name(&self) -> Option<&'static str>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl RegisterInternalEvent for BytesReceived

§

type Handle = BytesReceivedHandle

source§

impl RegisterInternalEvent for BytesSent

§

type Handle = BytesSentHandle

source§

impl RegisterInternalEvent for EventsReceived

§

type Handle = EventsReceivedHandle

source§

impl RegisterInternalEvent for EventsSent

§

type Handle = EventsSentHandle

source§

impl RegisterInternalEvent for TaggedEventsSent

§

type Handle = TaggedEventsSentHandle

source§

impl<'a, const INTENTIONAL: bool> RegisterInternalEvent for ComponentEventsDropped<'a, INTENTIONAL>

§

type Handle = DroppedHandle<'a, INTENTIONAL>

source§

impl<E: RegisterInternalEvent> RegisterInternalEvent for DefaultName<E>