FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WeakEventSender

    trait · ferroui-base · v0.5.0

    trait WeakEventSender: Clone + 'static
    

    A handle to an object that raises an event subscribed to through a WeakEvent: the managed reference type of the sender.

    A WeakEvent identifies a sender by the address of the object the handle refers to and holds it weakly.

    View source

    Members

    Weak

    type Weak: Clone + 'static
    

    The weak form of the handle.

    Source

    downgrade_sender

    fn downgrade_sender(self: &Self) -> <Self as >::Weak
    

    Source

    upgrade_sender

    fn upgrade_sender(weak: &<Self as >::Weak) -> Option<Self>
    

    Source

    sender_address

    fn sender_address(self: &Self) -> usize
    

    The address of the object the handle refers to.

    Source

    Trait implementations

    Availability

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