pub struct EventClosureMarker<Marker>(/* private fields */);Expand description
Marker for event handlers provided as closures.
Trait Implementations§
Source§impl<Data, Function, Spawn, Marker> EventHandlerValue<Data, EventClosureMarker<Marker>> for Functionwhere
Data: for<'a> From<&'a PlatformEventData> + 'static,
Function: FnMut(Event<Data>) -> Spawn + 'static,
Spawn: SpawnIfAsync<Marker> + 'static,
impl<Data, Function, Spawn, Marker> EventHandlerValue<Data, EventClosureMarker<Marker>> for Functionwhere
Data: for<'a> From<&'a PlatformEventData> + 'static,
Function: FnMut(Event<Data>) -> Spawn + 'static,
Spawn: SpawnIfAsync<Marker> + 'static,
Source§fn into_platform_listener(self) -> ListenerCallback<PlatformEventData>
fn into_platform_listener(self) -> ListenerCallback<PlatformEventData>
Convert this handler into a platform event listener.
Auto Trait Implementations§
impl<Marker> Freeze for EventClosureMarker<Marker>where
PhantomData<Marker>: Freeze,
impl<Marker> RefUnwindSafe for EventClosureMarker<Marker>where
PhantomData<Marker>: RefUnwindSafe,
impl<Marker> Send for EventClosureMarker<Marker>where
PhantomData<Marker>: Send,
impl<Marker> Sync for EventClosureMarker<Marker>where
PhantomData<Marker>: Sync,
impl<Marker> Unpin for EventClosureMarker<Marker>where
PhantomData<Marker>: Unpin,
impl<Marker> UnsafeUnpin for EventClosureMarker<Marker>where
PhantomData<Marker>: UnsafeUnpin,
impl<Marker> UnwindSafe for EventClosureMarker<Marker>where
PhantomData<Marker>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.