pub struct Commands<A> { /* private fields */ }Expand description
Deferred to the next boundary; a result arrives before the next entry that can observe it.
Implementations§
Source§impl<A: Stores> Commands<A>
impl<A: Stores> Commands<A>
pub fn submit(&mut self, command: Command<A>) -> RequestId
pub fn app(&mut self, command: impl AppCommand<A>) -> RequestId
pub fn try_app_fn( &mut self, name: &'static str, apply: impl FnMut(&mut Dispatch<'_, A>) -> Result<Outcome, Rejection> + Send + 'static, ) -> RequestId
pub fn spawn( &mut self, bundle: SpawnBundle<A>, ) -> Result<Reservation, Rejection>
pub fn pending(&self) -> &[Request<A>]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<A> Freeze for Commands<A>
impl<A> !RefUnwindSafe for Commands<A>
impl<A> Send for Commands<A>
impl<A> !Sync for Commands<A>
impl<A> Unpin for Commands<A>
impl<A> UnsafeUnpin for Commands<A>
impl<A> !UnwindSafe for Commands<A>
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