pub struct Held(/* private fields */);Expand description
A node this run holds.
There is no third way to put it down. The type has one private
field, so it is minted only by super::PlanTree::claim, and it is
consumed only by Held::finish and Held::stop — one takes
evidence, the other takes a cause. A run that simply stops working
leaves the value with its owner, and the owner’s freeze path spends
it on StopCause::FrozeWithoutEvidence, which is where the red in
crate::blockage comes from.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Held
impl RefUnwindSafe for Held
impl Send for Held
impl Sync for Held
impl Unpin for Held
impl UnsafeUnpin for Held
impl UnwindSafe for Held
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