Skip to main content

FocusProvider

Trait FocusProvider 

Source
pub trait FocusProvider:
    Debug
    + Send
    + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn version(&self) -> &str;
    fn method(&self) -> EvidenceMethod;
    fn observe(&self, context: &Context) -> Result<Option<String>, String>;
}
Expand description

Closed application provider family for the production focus manager.

Required Methods§

Source

fn id(&self) -> &str

Stable provider identity frozen into the session contract.

Source

fn version(&self) -> &str

Provider implementation version.

Source

fn method(&self) -> EvidenceMethod

How the application obtains the focus evidence.

Source

fn observe(&self, context: &Context) -> Result<Option<String>, String>

Focused semantic recipient, or None when no node owns focus.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§