pub enum SpawnError<F: Future, N: TaskNotifier, M: Send + Sync + 'static = (), K: OutputMode = SendOutput> {
Create(CreateError<F, M>),
Submit {
error: SubmitError,
handle: TaskHandle<N, F::Output, M, K>,
},
}Expand description
便利派发(dispatch)失败时明确区分尚未创建和已经创建。
Variants§
Trait Implementations§
Source§impl<F: Future, N: TaskNotifier, M: Send + Sync + 'static, K: OutputMode> Debug for SpawnError<F, N, M, K>
impl<F: Future, N: TaskNotifier, M: Send + Sync + 'static, K: OutputMode> Debug for SpawnError<F, N, M, K>
Auto Trait Implementations§
impl<F, N, M = (), K = SendOutput> !RefUnwindSafe for SpawnError<F, N, M, K>
impl<F, N, M = (), K = SendOutput> !UnwindSafe for SpawnError<F, N, M, K>
impl<F, N, M, K> Forget for SpawnError<F, N, M, K>
impl<F, N, M, K> Freeze for SpawnError<F, N, M, K>
impl<F, N, M, K> Move for SpawnError<F, N, M, K>
impl<F, N, M, K> Send for SpawnError<F, N, M, K>
impl<F, N, M, K> Sync for SpawnError<F, N, M, K>
impl<F, N, M, K> Unpin for SpawnError<F, N, M, K>
impl<F, N, M, K> UnsafeUnpin for SpawnError<F, N, M, K>
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