Struct reactive_graph::actions::ArcMultiAction
source · pub struct ArcMultiAction<I, O>where
I: 'static,
O: 'static,{ /* private fields */ }Implementations§
source§impl<I, O> ArcMultiAction<I, O>where
I: 'static,
O: 'static,
impl<I, O> ArcMultiAction<I, O>where
I: 'static,
O: 'static,
pub fn new<Fut>(action_fn: impl Fn(&I) -> Fut + Send + Sync + 'static) -> Self
sourcepub fn dispatch(&self, input: I)
pub fn dispatch(&self, input: I)
Calls the async function with a reference to the input type as its argument.
sourcepub fn dispatch_sync(&self, value: O)
pub fn dispatch_sync(&self, value: O)
Synchronously adds a submission with the given value.
This can be useful for use cases like handling errors, where the error can already be known on the client side.
sourcepub fn submissions(&self) -> ArcReadSignal<Vec<ArcSubmission<I, O>>>
pub fn submissions(&self) -> ArcReadSignal<Vec<ArcSubmission<I, O>>>
The set of all submissions to this multi-action.
sourcepub fn version(&self) -> ArcRwSignal<usize>
pub fn version(&self) -> ArcRwSignal<usize>
How many times an action has successfully resolved.
Trait Implementations§
source§impl<I, O> Clone for ArcMultiAction<I, O>where
I: 'static,
O: 'static,
impl<I, O> Clone for ArcMultiAction<I, O>where
I: 'static,
O: 'static,
Auto Trait Implementations§
impl<I, O> Freeze for ArcMultiAction<I, O>
impl<I, O> !RefUnwindSafe for ArcMultiAction<I, O>
impl<I, O> Send for ArcMultiAction<I, O>
impl<I, O> Sync for ArcMultiAction<I, O>
impl<I, O> Unpin for ArcMultiAction<I, O>
impl<I, O> !UnwindSafe for ArcMultiAction<I, O>
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