Skip to main content

Held

Trait Held 

Source
pub trait Held {
    // Provided method
    fn wanted(&self) -> bool { ... }
}
Expand description

A hold of the exchanges’ lock, as a Hold gives it: let go when dropped.

Provided Methods§

Source

fn wanted(&self) -> bool

Whether an exchange waits for the lock now (a dose’s alarm): the hold then ends after the copy it places (review of part 4, D-1b).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Held for ()

Implementors§