pub struct App {
pub root: PathBuf,
pub app: Crate,
pub modules: Vec<Module>,
pub identity: Option<Identity>,
pub package_events: Vec<EventDeclaration>,
pub packages: Vec<RoutedPackage>,
pub split: Split,
pub structure_ceilings: bool,
}Fields§
§root: PathBuf§app: Crate§modules: Vec<Module>§identity: Option<Identity>§package_events: Vec<EventDeclaration>Raised by the framework packages the app uses, which its listeners may hear.
packages: Vec<RoutedPackage>The framework packages other than sofie-identity whose routes the app serves.
split: Split§structure_ceilings: boolSet by [package.metadata.sofie] structure-ceilings = true.
Implementations§
Source§impl App
impl App
pub fn entitlements(&self) -> Entitlements<'_>
Source§impl App
impl App
pub fn has_feature_flags(&self) -> bool
pub fn has_permitted_areas(&self) -> bool
Source§impl App
impl App
pub fn areas(&self) -> Vec<KnownArea<'_>>
pub fn area(&self, name: &str) -> Option<KnownArea<'_>>
pub fn member_home(&self, area: &AreaDefinition) -> Option<String>
pub fn depends_on(&self, package: &str) -> bool
pub fn wiring_file(&self) -> PathBuf
Sourcepub fn embedded_path(&self, file: &Path) -> Option<String>
pub fn embedded_path(&self, file: &Path) -> Option<String>
From the app crate’s root, where embed! starts.
pub fn route_sites(&self) -> Vec<RouteSite<'_>>
Source§impl App
impl App
pub fn package_routes(&self) -> PackageRoutes<'_>
Trait Implementations§
impl Eq for App
impl StructuralPartialEq for App
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe 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