FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WeakEventSubscriber

    struct · ferroui-base · v0.5.0

    struct WeakEventSubscriber<A: WeakEventArgs + ?Sized>
    

    A subscriber that raises its event for every event it receives.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • IWeakEventSubscriber<A>

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.