pub enum ContractResponse<R, E> {
Now(Result<R, E>),
Later,
}Expand description
Contract-layer mirror of crate::atomic::DispatchResult.
Now(Ok) → Immediate (boxed straight into the slot table);
Now(Err) → dispatch error; Later → Async(cmd_id).
Variants§
Now(Result<R, E>)
Result ready inline; the CompletionHandle is unused.
Later
Handle retained for off-thread completion.
Auto Trait Implementations§
impl<R, E> Freeze for ContractResponse<R, E>
impl<R, E> RefUnwindSafe for ContractResponse<R, E>where
R: RefUnwindSafe,
E: RefUnwindSafe,
impl<R, E> Send for ContractResponse<R, E>
impl<R, E> Sync for ContractResponse<R, E>
impl<R, E> Unpin for ContractResponse<R, E>
impl<R, E> UnsafeUnpin for ContractResponse<R, E>where
R: UnsafeUnpin,
E: UnsafeUnpin,
impl<R, E> UnwindSafe for ContractResponse<R, E>where
R: UnwindSafe,
E: UnwindSafe,
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