WeakEventSubscriber
struct · ferroui-base · v0.5.0
struct WeakEventSubscriber<A: WeakEventArgs + ?Sized>
A subscriber that raises its event for every event it
receives.
Members
new
fn new() -> Rc<Self>
event
fn event<F>(self: &Self, handler: F) -> Rc<dyn IDisposable>
where F: Fn(Option<&'s dyn Any>, &'v dyn Any, &'r <A as >::Args<'a>) -> () + 'static
Subscribes to the events this subscriber receives. Disposing the returned handle unsubscribes.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherIWeakEventSubscriber<A>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.