pub struct ArcHandler<A: Clone + 'static>(/* private fields */);Expand description
Represents a cloneable handler.
See Handler::into_arc for more details.
Implementations§
Source§impl<A: Clone + 'static> ArcHandler<A>
impl<A: Clone + 'static> ArcHandler<A>
Sourcepub fn widget_event(&self, args: &A) -> Option<UiTask<()>>
pub fn widget_event(&self, args: &A) -> Option<UiTask<()>>
Calls HandlerExt::widget_event.
Sourcepub fn app_event(
&self,
handle: Box<dyn AppWeakHandle>,
is_preview: bool,
args: &A,
)
pub fn app_event( &self, handle: Box<dyn AppWeakHandle>, is_preview: bool, args: &A, )
Calls HandlerExt::app_event.
Sourcepub fn call(&self, args: &A) -> HandlerResult
pub fn call(&self, args: &A) -> HandlerResult
Calls the handler.
Trait Implementations§
Source§impl<A: Clone + 'static> AnyArcHandler for ArcHandler<A>
impl<A: Clone + 'static> AnyArcHandler for ArcHandler<A>
Source§impl<A: Clone + Clone + 'static> Clone for ArcHandler<A>
impl<A: Clone + Clone + 'static> Clone for ArcHandler<A>
Source§fn clone(&self) -> ArcHandler<A>
fn clone(&self) -> ArcHandler<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A: Clone + 'static> From<ArcHandler<A>> for Handler<A>
impl<A: Clone + 'static> From<ArcHandler<A>> for Handler<A>
Source§fn from(f: ArcHandler<A>) -> Self
fn from(f: ArcHandler<A>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<A> Freeze for ArcHandler<A>
impl<A> !RefUnwindSafe for ArcHandler<A>
impl<A> Send for ArcHandler<A>
impl<A> Sync for ArcHandler<A>
impl<A> Unpin for ArcHandler<A>
impl<A> !UnwindSafe for ArcHandler<A>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more