pub struct ApplicationInner { /* private fields */ }Expand description
应用内部状态
Implementations§
Source§impl ApplicationInner
impl ApplicationInner
Sourcepub async fn get_component<C: DynComponent + 'static>(
&self,
label: Option<&str>,
) -> Option<Arc<C>>
pub async fn get_component<C: DynComponent + 'static>( &self, label: Option<&str>, ) -> Option<Arc<C>>
获取组件(返回 Option<Arc
Sourcepub async fn must_get_component<C: DynComponent + 'static>(
&self,
label: Option<&str>,
) -> Result<Arc<C>>
pub async fn must_get_component<C: DynComponent + 'static>( &self, label: Option<&str>, ) -> Result<Arc<C>>
强制获取组件(返回 Result<Arc
Sourcepub async fn config(&self) -> RwLockReadGuard<'_, Config>
pub async fn config(&self) -> RwLockReadGuard<'_, Config>
获取配置(返回读锁 Guard)
Sourcepub async fn config_mut(&self) -> RwLockWriteGuard<'_, Config>
pub async fn config_mut(&self) -> RwLockWriteGuard<'_, Config>
获取配置可变引用(返回写锁 Guard)
pub fn set_wait_signal(&self, wait: bool)
Trait Implementations§
Source§impl Default for ApplicationInner
impl Default for ApplicationInner
Source§fn default() -> ApplicationInner
fn default() -> ApplicationInner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ApplicationInner
impl !RefUnwindSafe for ApplicationInner
impl !UnwindSafe for ApplicationInner
impl Send for ApplicationInner
impl Sync for ApplicationInner
impl Unpin for ApplicationInner
impl UnsafeUnpin for ApplicationInner
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