pub enum DownloadTaskState<T, L> {
Pending,
Loading(L),
Error(OwnedError),
Done(T),
Canceled,
}Variants§
Trait Implementations§
Source§impl<T: Clone, L: Clone> Clone for DownloadTaskState<T, L>
impl<T: Clone, L: Clone> Clone for DownloadTaskState<T, L>
Source§fn clone(&self) -> DownloadTaskState<T, L>
fn clone(&self) -> DownloadTaskState<T, L>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T, L> Default for DownloadTaskState<T, L>
impl<T, L> Default for DownloadTaskState<T, L>
Source§impl<T, L> From<&DownloadTaskState<T, L>> for TaskState
impl<T, L> From<&DownloadTaskState<T, L>> for TaskState
Source§fn from(value: &DownloadTaskState<T, L>) -> Self
fn from(value: &DownloadTaskState<T, L>) -> Self
Converts to this type from the input type.
Source§impl<T, L> From<DownloadTaskState<T, L>> for TaskState
impl<T, L> From<DownloadTaskState<T, L>> for TaskState
Source§fn from(value: DownloadTaskState<T, L>) -> Self
fn from(value: DownloadTaskState<T, L>) -> Self
Converts to this type from the input type.
Source§impl<T, L> From<Result<T, Error>> for DownloadTaskState<T, L>
impl<T, L> From<Result<T, Error>> for DownloadTaskState<T, L>
Source§fn from(value: ManagerCoreResult<T>) -> Self
fn from(value: ManagerCoreResult<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T, L> !RefUnwindSafe for DownloadTaskState<T, L>
impl<T, L> !UnwindSafe for DownloadTaskState<T, L>
impl<T, L> Freeze for DownloadTaskState<T, L>
impl<T, L> Send for DownloadTaskState<T, L>
impl<T, L> Sync for DownloadTaskState<T, L>
impl<T, L> Unpin for DownloadTaskState<T, L>
impl<T, L> UnsafeUnpin for DownloadTaskState<T, L>where
L: UnsafeUnpin,
T: UnsafeUnpin,
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more