pub struct Callback<IN, OUT = ()> { /* private fields */ }
Expand description
Universal callback wrapper.
An Rc
wrapper is used to make it cloneable.
Implementations§
Trait Implementations§
source§impl<IN, OUT> ImplicitClone for Callback<IN, OUT>
impl<IN, OUT> ImplicitClone for Callback<IN, OUT>
source§fn implicit_clone(&self) -> Self
fn implicit_clone(&self) -> Self
This function is not magic; it is literally defined as Read more
source§impl<EVENT> IntoEventCallback<EVENT> for &Callback<EVENT>
impl<EVENT> IntoEventCallback<EVENT> for &Callback<EVENT>
source§fn into_event_callback(self) -> Option<Callback<EVENT>>
fn into_event_callback(self) -> Option<Callback<EVENT>>
Convert
self
to Option<Callback<EVENT>>
source§impl<EVENT> IntoEventCallback<EVENT> for Callback<EVENT>
impl<EVENT> IntoEventCallback<EVENT> for Callback<EVENT>
source§fn into_event_callback(self) -> Option<Callback<EVENT>>
fn into_event_callback(self) -> Option<Callback<EVENT>>
Convert
self
to Option<Callback<EVENT>>
source§impl<I, O, F> IntoPropValue<Callback<I, O>> for Fwhere
F: 'static + Fn(I) -> O,
impl<I, O, F> IntoPropValue<Callback<I, O>> for Fwhere
F: 'static + Fn(I) -> O,
source§fn into_prop_value(self) -> Callback<I, O>
fn into_prop_value(self) -> Callback<I, O>
Convert
self
to a value of a Properties
struct.Auto Trait Implementations§
impl<IN, OUT = ()> !RefUnwindSafe for Callback<IN, OUT>
impl<IN, OUT = ()> !Send for Callback<IN, OUT>
impl<IN, OUT = ()> !Sync for Callback<IN, OUT>
impl<IN, OUT> Unpin for Callback<IN, OUT>
impl<IN, OUT = ()> !UnwindSafe for Callback<IN, OUT>
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<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.