pub struct CloseCont {
pub from: u32,
pub pending: Option<Value>,
pub after: AfterClose,
}Expand description
Per-iteration state for a chain of __close handlers driven through the
interpreter loop. When a handler is pushed onto the call stack, this rides
in a Cont::Close frame underneath it so a coroutine.yield from the
handler preserves the close iteration with the rest of the thread.
Fields§
§from: u32the close threshold: keep closing tbc slots ≥ from until exhausted
pending: Option<Value>the error object threaded through subsequent handlers, if any
after: AfterClosewhat to do once every slot ≥ from is closed
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CloseCont
impl !Send for CloseCont
impl !Sync for CloseCont
impl !UnwindSafe for CloseCont
impl Freeze for CloseCont
impl Unpin for CloseCont
impl UnsafeUnpin for CloseCont
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