Skip to main content

PublishesPresence

Trait PublishesPresence 

pub trait PublishesPresence: Widget {
    // Provided methods
    fn presence_key(&self) -> Option<PresenceKey> { ... }
    fn presence_payload(&self) -> Option<(PresenceKey, PresencePayload)> { ... }
}
Expand description

A widget with a presence identity and, while focused, outbound presence.

Provided Methods§

fn presence_key(&self) -> Option<PresenceKey>

Stable identity for presence and permission lookup.

fn presence_payload(&self) -> Option<(PresenceKey, PresencePayload)>

Outbound presence (typically caret/selection) broadcast while this widget holds focus; the host polls the focused widget after each event and diffs it out to peers.

Implementors§