pub struct Submission<I, O, S = SyncStorage>where
I: 'static,
O: 'static,{ /* private fields */ }Expand description
An action that has been submitted by dispatching it to a MultiAction.
Implementations§
Source§impl<I, O, S> Submission<I, O, S>
impl<I, O, S> Submission<I, O, S>
Sourcepub fn input(&self) -> ReadSignal<Option<I>, S>
pub fn input(&self) -> ReadSignal<Option<I>, S>
The current argument that was dispatched to the async function.
Some while we are waiting for it to resolve, None if it has resolved.
Source§impl<I, O, S> Submission<I, O, S>
impl<I, O, S> Submission<I, O, S>
Sourcepub fn value(&self) -> ReadSignal<Option<O>, S>
pub fn value(&self) -> ReadSignal<Option<O>, S>
The most recent return value of the async function.
Source§impl<I, O, S> Submission<I, O, S>
impl<I, O, S> Submission<I, O, S>
Sourcepub fn pending(&self) -> ReadSignal<bool>
pub fn pending(&self) -> ReadSignal<bool>
Whether this submision is still waiting to resolve.
Sourcepub fn canceled(&self) -> ReadSignal<bool>
pub fn canceled(&self) -> ReadSignal<bool>
Whether this submission has been canceled.
Trait Implementations§
Source§impl<I, O, S> Clone for Submission<I, O, S>
impl<I, O, S> Clone for Submission<I, O, S>
Source§fn clone(&self) -> Submission<I, O, S>
fn clone(&self) -> Submission<I, O, S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I, O, S> Debug for Submission<I, O, S>
impl<I, O, S> Debug for Submission<I, O, S>
Source§impl<I, O> From<ArcSubmission<I, O>> for Submission<I, O>
impl<I, O> From<ArcSubmission<I, O>> for Submission<I, O>
Source§fn from(value: ArcSubmission<I, O>) -> Submission<I, O>
fn from(value: ArcSubmission<I, O>) -> Submission<I, O>
Converts to this type from the input type.
Source§impl<I, O> FromLocal<ArcSubmission<I, O>> for Submission<I, O, LocalStorage>where
I: 'static,
O: 'static,
impl<I, O> FromLocal<ArcSubmission<I, O>> for Submission<I, O, LocalStorage>where
I: 'static,
O: 'static,
Source§fn from_local(value: ArcSubmission<I, O>) -> Submission<I, O, LocalStorage>
fn from_local(value: ArcSubmission<I, O>) -> Submission<I, O, LocalStorage>
Converts between the types.
Source§impl<I, O, S> Hash for Submission<I, O, S>
impl<I, O, S> Hash for Submission<I, O, S>
Source§impl<I, O, S> PartialEq for Submission<I, O, S>
impl<I, O, S> PartialEq for Submission<I, O, S>
impl<I, O, S> Copy for Submission<I, O, S>
impl<I, O, S> Eq for Submission<I, O, S>
impl<I, O, S> StructuralPartialEq for Submission<I, O, S>where
I: 'static,
O: 'static,
Auto Trait Implementations§
impl<I, O, S> Freeze for Submission<I, O, S>
impl<I, O, S> RefUnwindSafe for Submission<I, O, S>
impl<I, O, S> Send for Submission<I, O, S>
impl<I, O, S> Sync for Submission<I, O, S>
impl<I, O, S> Unpin for Submission<I, O, S>
impl<I, O, S> UnwindSafe for Submission<I, O, S>
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.