pub struct App {
pub repository: Repository,
pub share: Share,
pub schema: KindSchema,
pub context: Arc<Context>,
}Expand description
The loaded application: the repository, the distribution, the kind schema and the context every command works from.
Fields§
§repository: RepositoryThe repository the process was pointed at.
The distribution directory the kinds and schemas were read from.
schema: KindSchemaThe kind schema: the distribution’s kinds and schemas plus the repository’s additions.
context: Arc<Context>The index and the registry, shared by every projection.
Implementations§
Source§impl App
impl App
Sourcepub fn load(args: &RepoArgs) -> Result<Self, Error>
pub fn load(args: &RepoArgs) -> Result<Self, Error>
Discover the repository, build the index, log every diagnostic, compose the
registry. --strict turns an error diagnostic into a startup error.
Sourcepub fn compose(
repository: Repository,
share: Share,
schema: KindSchema,
index: Index,
) -> Result<Self, Error>
pub fn compose( repository: Repository, share: Share, schema: KindSchema, index: Index, ) -> Result<Self, Error>
Compose the registry over an index already built (tests build their own).
Sourcepub fn registry(&self) -> &CapabilityRegistry
pub fn registry(&self) -> &CapabilityRegistry
The capability registry.
Auto Trait Implementations§
impl !RefUnwindSafe for App
impl !UnwindSafe for App
impl Freeze for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more