Skip to main content

forge_server/surface/
accounts.rs

1//! `accounts()`: the account pool as a view draws it.
2
3use forge_workspace::AccountPoolView;
4
5use super::ViewSurface;
6
7impl ViewSurface {
8    /// The pool as the home snapshot and `AccountsChanged` both state it.
9    ///
10    /// **Delegated rather than rebuilt.** The frame's payload and the
11    /// snapshot's field must be one builder's answer, or a client folding the
12    /// frame and a client reading the snapshot can disagree (rule 25).
13    pub fn accounts(&self) -> AccountPoolView {
14        self.workspace.account_pool_view()
15    }
16}