Enum SpawnError
pub enum SpawnError<F, N, M = (), K = SendOutput>{
Create(CreateError<F, M>),
Submit {
error: SubmitError,
handle: TaskHandle<N, <F as Future>::Output, M, K>,
},
}Expand description
便利派发(dispatch)失败时明确区分尚未创建和已经创建。
Variants§
Create(CreateError<F, M>)
Submit
Trait Implementations§
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