pub struct ControlCapture {
pub prompt: Ref,
pub continuation: Ref,
pub value: Ref,
pub result_shape: Ref,
pub multishot: bool,
}Expand description
Record describing a capture of the continuation up to a prompt.
Fields§
§prompt: RefReference identifying the prompt boundary captured up to.
continuation: RefReference to the captured continuation.
value: RefValue delivered to the captured continuation.
result_shape: RefShape the resumed result must satisfy.
multishot: boolWhether the continuation may be resumed more than once.
Implementations§
Trait Implementations§
Source§impl Clone for ControlCapture
impl Clone for ControlCapture
Source§fn clone(&self) -> ControlCapture
fn clone(&self) -> ControlCapture
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlCapture
impl Debug for ControlCapture
impl Eq for ControlCapture
Source§impl PartialEq for ControlCapture
impl PartialEq for ControlCapture
Source§fn eq(&self, other: &ControlCapture) -> bool
fn eq(&self, other: &ControlCapture) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ControlCapture
Auto Trait Implementations§
impl Freeze for ControlCapture
impl RefUnwindSafe for ControlCapture
impl Send for ControlCapture
impl Sync for ControlCapture
impl Unpin for ControlCapture
impl UnsafeUnpin for ControlCapture
impl UnwindSafe for ControlCapture
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