pub struct HandleValue(pub u64);Expand description
Background task handle minted by LET $t: HANDLE<T> = ASYNC ....
The payload names what AWAIT binds: HANDLE<T> yields T on
capture, HANDLE<VOID> is join-only (bare AWAIT/CANCEL only).
The handle itself is just a task id and carries no data: observe
the task through AWAIT, CANCEL, or TASK_POLL, never through
the handle. Copying it aliases the same task, and joining twice
fails. Bare HANDLE is not a declaration type: write the payload
or explicit HANDLE<ANY>.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for HandleValue
impl Clone for HandleValue
impl Copy for HandleValue
Source§impl Debug for HandleValue
impl Debug for HandleValue
Source§impl Display for HandleValue
impl Display for HandleValue
Source§impl OxDockType for HandleValue
impl OxDockType for HandleValue
Source§fn descriptor() -> &'static TypeDescriptor
fn descriptor() -> &'static TypeDescriptor
The canonical descriptor deriving from the struct’s name plus doc
comments. The same reference every call: pointer-compare words
against it.
Source§impl PartialEq for HandleValue
impl PartialEq for HandleValue
impl StructuralPartialEq for HandleValue
Auto Trait Implementations§
impl Forget for HandleValue
impl Freeze for HandleValue
impl Move for HandleValue
impl RefUnwindSafe for HandleValue
impl Send for HandleValue
impl Sync for HandleValue
impl Unpin for HandleValue
impl UnsafeUnpin for HandleValue
impl UnwindSafe for HandleValue
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