#[non_exhaustive]pub struct Handle {
pub backend: BackendTag,
pub kind: HandleKind,
pub opaque: HandleOpaque,
}Expand description
Opaque attempt cookie held by the worker for the duration of an
attempt. Produced by claim / claim_from_reclaim / suspend;
borrowed by every op (renew, progress, append_frame, complete, fail,
cancel, suspend, delay, wait_children, observe_signals, report_usage).
See RFC-012 §4.1 for the round-4 design — terminal ops borrow rather than consume so callers can retry after a transport error.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.backend: BackendTag§kind: HandleKind§opaque: HandleOpaqueImplementations§
Source§impl Handle
impl Handle
Sourcepub fn new(backend: BackendTag, kind: HandleKind, opaque: HandleOpaque) -> Self
pub fn new(backend: BackendTag, kind: HandleKind, opaque: HandleOpaque) -> Self
Construct a new Handle. Called by backend impls only; consumer
code receives Handles from claim / suspend / claim_from_reclaim.
Trait Implementations§
impl Eq for Handle
impl StructuralPartialEq for Handle
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnsafeUnpin for Handle
impl UnwindSafe for Handle
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