pub struct MachineCheckpoint<F, Id> { /* private fields */ }Expand description
Owned resumable machine state; construction requires an admitted permit.
Implementations§
Source§impl<F, Id> MachineCheckpoint<F, Id>
impl<F, Id> MachineCheckpoint<F, Id>
Sourcepub fn new(
frames: FrameStack<F>,
permit: &MachinePermit,
receipt: WorkReceipt<Id>,
) -> Self
pub fn new( frames: FrameStack<F>, permit: &MachinePermit, receipt: WorkReceipt<Id>, ) -> Self
Binds suspended frames and their ordered receipt prefix to admitted content.
Sourcepub fn evidence(&self) -> &ContinuationEvidence<Id>
pub fn evidence(&self) -> &ContinuationEvidence<Id>
Returns the immutable continuation evidence.
Sourcepub fn resume(
self,
permit: &MachinePermit,
) -> Result<(FrameStack<F>, WorkReceipt<Id>), Self>
pub fn resume( self, permit: &MachinePermit, ) -> Result<(FrameStack<F>, WorkReceipt<Id>), Self>
Resumes only when the supplied permit admits the checkpoint’s exact content.
Trait Implementations§
Auto Trait Implementations§
impl<F, Id> Freeze for MachineCheckpoint<F, Id>
impl<F, Id> RefUnwindSafe for MachineCheckpoint<F, Id>where
F: RefUnwindSafe,
Id: RefUnwindSafe,
impl<F, Id> Send for MachineCheckpoint<F, Id>
impl<F, Id> Sync for MachineCheckpoint<F, Id>
impl<F, Id> Unpin for MachineCheckpoint<F, Id>
impl<F, Id> UnsafeUnpin for MachineCheckpoint<F, Id>
impl<F, Id> UnwindSafe for MachineCheckpoint<F, Id>where
F: UnwindSafe,
Id: UnwindSafe,
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