pub struct ExchangeControl { /* private fields */ }Expand description
Caller-owned control record. Dropping a pending lease invalidates the ticket and wakes its Runner. A Runner treats that stale ticket as cancelled. Keep the caller’s lane hold alive until the lease is released.
Implementations§
Source§impl ExchangeControl
impl ExchangeControl
pub fn ticket(&self) -> ExchangeControlTicket
Sourcepub fn caller_state(&self) -> Result<ExchangeControlState>
pub fn caller_state(&self) -> Result<ExchangeControlState>
The terminal state visible to the caller, even after Runner retirement.
Trait Implementations§
Source§impl Drop for ExchangeControl
impl Drop for ExchangeControl
Auto Trait Implementations§
impl Forget for ExchangeControl
impl Freeze for ExchangeControl
impl Move for ExchangeControl
impl RefUnwindSafe for ExchangeControl
impl Send for ExchangeControl
impl Sync for ExchangeControl
impl Unpin for ExchangeControl
impl UnsafeUnpin for ExchangeControl
impl UnwindSafe for ExchangeControl
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