pub struct ControlResume {
pub continuation: Ref,
pub value: Ref,
pub result_shape: Ref,
}Expand description
Record describing a resume of a captured continuation with a value.
Fields§
§continuation: RefReference to the continuation being resumed.
value: RefValue delivered to the resumed continuation.
result_shape: RefShape the resumed result must satisfy.
Implementations§
Trait Implementations§
Source§impl Clone for ControlResume
impl Clone for ControlResume
Source§fn clone(&self) -> ControlResume
fn clone(&self) -> ControlResume
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 ControlResume
impl Debug for ControlResume
impl Eq for ControlResume
Source§impl PartialEq for ControlResume
impl PartialEq for ControlResume
Source§fn eq(&self, other: &ControlResume) -> bool
fn eq(&self, other: &ControlResume) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ControlResume
Auto Trait Implementations§
impl Freeze for ControlResume
impl RefUnwindSafe for ControlResume
impl Send for ControlResume
impl Sync for ControlResume
impl Unpin for ControlResume
impl UnsafeUnpin for ControlResume
impl UnwindSafe for ControlResume
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