Skip to main content

PlaceProvider

Trait PlaceProvider 

Source
pub trait PlaceProvider:
    Debug
    + Send
    + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn sections(&self) -> Vec<PlaceSection>;
}
Expand description

An application’s sections of places (PlaceProviders::register). Asked each time a picker or a panel is drawn: it answers from what it holds (a device watch’s list, a history kept in memory), never reading a disk or a network there.

Required Methods§

Source

fn id(&self) -> &str

Its id: registering another with this id replaces it.

Source

fn sections(&self) -> Vec<PlaceSection>

Its sections now, in the order shown.

Implementors§