1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! The state every Redseat app shows (feature `app`), so each app only draws it: a
//! desktop app on GPUI, an Exact app, native mobile apps through bindings.
//!
//! - [`ServerCopy`]: a server through its local copy ([`Mirror`](crate::Mirror)): the
//! connection in the background, the libraries in the sidebar's order, a library as
//! its grid shows it ([`LibraryView`]: its count, held still while it syncs, and the
//! sync's progress), its medias in the grid's order, the names of its people and
//! tags, and where its files are.
//! - [`TokenStore`]: the cloud session token between runs.
//! - [`details`]: a media's details as label and value rows.
//! - [`filter`]: a grid's order and filters as the user sets them, their tokens'
//! wording, and the query they make.
//! - [`text`]: what the screens say: durations, sizes, the sync's progress, cloud
//! errors.
//!
//! The state is read, not pushed: an app reads what it shows, and reads it again when
//! a [`Change`] says it changed. That fits every UI: an Exact source observes a topic,
//! a GPUI view calls `cx.notify()`, a SwiftUI or Compose model publishes the value
//! read. Reads of the copy are async (SQLite); the rest answers at once.
//!
//! The module starts no runtime of its own: on native targets [`ServerCopy::open`] runs
//! on the tokio runtime it is called in, and [`ServerCopy::with_mirror`] takes the
//! app's [`Runtime`](crate::mirror::Runtime), as the mirror does.
pub use crate;
pub use ;
pub use TokenStore;