pub struct App { /* private fields */ }
Implementations§
source§impl App
impl App
pub fn new() -> AppBuilder
sourcepub fn get_component_ref<T>(&self) -> Option<ComponentRef<T>>
pub fn get_component_ref<T>(&self) -> Option<ComponentRef<T>>
Get the component of the specified type
pub fn get_component<T>(&self) -> Option<T>
pub fn get_components(&self) -> Vec<String>
Trait Implementations§
source§impl ConfigRegistry for App
impl ConfigRegistry for App
source§fn get_config<T>(&self) -> Result<T>where
T: DeserializeOwned + Configurable,
fn get_config<T>(&self) -> Result<T>where
T: DeserializeOwned + Configurable,
Get the configuration items according to the Configurable’s
config_prefix
Auto Trait Implementations§
impl Freeze for App
impl !RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin 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