pub struct ModelCx<'a, H: ModelHost + ?Sized> { /* private fields */ }Expand description
Context passed to model update closures.
This provides access back to the host (often an App-like container) while a model lease is
active, enabling updates that need to read/write other models or globals.
Implementations§
Auto Trait Implementations§
impl<'a, H> Freeze for ModelCx<'a, H>where
H: ?Sized,
impl<'a, H> RefUnwindSafe for ModelCx<'a, H>where
H: RefUnwindSafe + ?Sized,
impl<'a, H> Send for ModelCx<'a, H>
impl<'a, H> Sync for ModelCx<'a, H>
impl<'a, H> Unpin for ModelCx<'a, H>where
H: ?Sized,
impl<'a, H> UnsafeUnpin for ModelCx<'a, H>where
H: ?Sized,
impl<'a, H> !UnwindSafe for ModelCx<'a, H>
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