pub struct UiAsyncContext { /* private fields */ }Implementations§
Source§impl UiAsyncContext
impl UiAsyncContext
pub fn application(&self) -> ApplicationContext
pub fn resource<T>(&self) -> Arc<T> ⓘ
pub fn try_resource<T>(&self) -> Option<Arc<T>>
pub fn command<C>(&self) -> CommandHandle<C>where
C: Command,
pub async fn invoke<C>(&self, args: C::Args) -> Result<C::Output, C::Error>where
C: Command,
pub fn emit<E>(&self, event: E) -> usizewhere
E: Event,
pub fn window(&self) -> Option<WindowHandle>
pub fn windows(&self) -> WindowManager
Trait Implementations§
Source§impl Clone for UiAsyncContext
impl Clone for UiAsyncContext
Source§fn clone(&self) -> UiAsyncContext
fn clone(&self) -> UiAsyncContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UiAsyncContext
impl RefUnwindSafe for UiAsyncContext
impl Send for UiAsyncContext
impl Sync for UiAsyncContext
impl Unpin for UiAsyncContext
impl UnsafeUnpin for UiAsyncContext
impl UnwindSafe for UiAsyncContext
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