Skip to main content

SharedRecord

Trait SharedRecord 

pub trait SharedRecord: Resource {
    const OWNER: &'static str;
    const EDITORS: &'static [&'static str] = _;

    // Provided method
    fn edited_by(app_id: &str) -> bool { ... }
}
Expand description

A resource of the person’s own that one app keeps for every app of theirs: their accounts, which Settings keeps and Mail signs in to. Each app holds its copy in its own store; the copies are one record, the same on every device, and converge over the person’s own room. Only the OWNER and the EDITORS change it; every other app reads it (ViewCx::shared_person in tilo-app).

Required Associated Constants§

const OWNER: &'static str

The app that keeps the record.

Provided Associated Constants§

const EDITORS: &'static [&'static str] = _

The other apps whose edits the record takes.

Provided Methods§

fn edited_by(app_id: &str) -> bool

Whether the app app_id changes the record.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§