pub struct ComposeContext<Ev> { /* private fields */ }
Expand description
A restricted context given to the closure passed to Compose::spawn
. This context can only
update the app, not request from the shell or spawn further tasks.
Implementations§
source§impl<Ev> ComposeContext<Ev>
impl<Ev> ComposeContext<Ev>
sourcepub fn update_app(&self, event: Ev)where
Ev: 'static,
pub fn update_app(&self, event: Ev)where
Ev: 'static,
Update the app with an event. This forwards to CapabilityContext::update_app
.
Trait Implementations§
Auto Trait Implementations§
impl<Ev> Freeze for ComposeContext<Ev>
impl<Ev> !RefUnwindSafe for ComposeContext<Ev>
impl<Ev> Send for ComposeContext<Ev>
impl<Ev> Sync for ComposeContext<Ev>
impl<Ev> Unpin for ComposeContext<Ev>
impl<Ev> !UnwindSafe for ComposeContext<Ev>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)