pub struct ArcSubmission<I, O> { /* private fields */ }
Expand description
An action that has been submitted by dispatching it to a MultiAction
.
Implementations§
Source§impl<I, O> ArcSubmission<I, O>where
I: 'static,
O: 'static,
impl<I, O> ArcSubmission<I, O>where
I: 'static,
O: 'static,
Sourcepub fn input(&self) -> ArcReadSignal<Option<I>>
pub fn input(&self) -> ArcReadSignal<Option<I>>
The current argument that was dispatched to the async
function.
Some
while we are waiting for it to resolve, None
if it has resolved.
Sourcepub fn value(&self) -> ArcReadSignal<Option<O>>
pub fn value(&self) -> ArcReadSignal<Option<O>>
The most recent return value of the async
function.
Sourcepub fn pending(&self) -> ArcReadSignal<bool>
pub fn pending(&self) -> ArcReadSignal<bool>
Whether this submision is still waiting to resolve.
Sourcepub fn canceled(&self) -> ArcReadSignal<bool>
pub fn canceled(&self) -> ArcReadSignal<bool>
Whether this submission has been canceled.
Trait Implementations§
Source§impl<I, O> Clone for ArcSubmission<I, O>
impl<I, O> Clone for ArcSubmission<I, O>
Source§fn clone(&self) -> ArcSubmission<I, O>
fn clone(&self) -> ArcSubmission<I, O>
Returns a copy 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> Debug for ArcSubmission<I, O>
impl<I, O> Debug for ArcSubmission<I, O>
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> Hash for ArcSubmission<I, O>
impl<I, O> Hash for ArcSubmission<I, O>
Source§impl<I, O> PartialEq for ArcSubmission<I, O>
impl<I, O> PartialEq for ArcSubmission<I, O>
impl<I, O> Eq for ArcSubmission<I, O>
impl<I, O> StructuralPartialEq for ArcSubmission<I, O>
Auto Trait Implementations§
impl<I, O> Freeze for ArcSubmission<I, O>
impl<I, O> RefUnwindSafe for ArcSubmission<I, O>
impl<I, O> Send for ArcSubmission<I, O>
impl<I, O> Sync for ArcSubmission<I, O>
impl<I, O> Unpin for ArcSubmission<I, O>
impl<I, O> UnwindSafe for ArcSubmission<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
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> 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.