pub struct HandleCx {
pub id: u64,
pub cancel: CancelToken,
}Expand description
Context handed to a protocol when a handle is opened.
Fields§
§id: u64The minted handle id.
cancel: CancelTokenCancelled when the handle is released. Protocol reads that park should park cancellably on this token; writes should not, so teardown writes can still land.
Auto Trait Implementations§
impl Freeze for HandleCx
impl RefUnwindSafe for HandleCx
impl Send for HandleCx
impl Sync for HandleCx
impl Unpin for HandleCx
impl UnsafeUnpin for HandleCx
impl UnwindSafe for HandleCx
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