pub struct OperationPlan { /* private fields */ }Expand description
A plan for executing a Cosmos DB operation.
Produced by CosmosDriver::plan_operation.
Implementations§
Source§impl OperationPlan
impl OperationPlan
Sourcepub fn to_continuation_token(&self) -> Result<ContinuationToken>
pub fn to_continuation_token(&self) -> Result<ContinuationToken>
Snapshots this plan into a ContinuationToken suitable for cross-process
resumption.
Snapshotting walks the pipeline tree and serializes a minimal record of
each node’s progress. The result can be passed back to
CosmosDriver::plan_operation
(with the same operation) to resume where this plan left off.
§Errors
Returns an error if a live pipeline node violates a snapshot-time
invariant — for example, a child inside a SequentialDrain whose
feed_range cannot be determined. These errors indicate an internal
pipeline bug rather than user input, and surface as a Cosmos client
error rather than silently producing a lossy continuation token.
Auto Trait Implementations§
impl !RefUnwindSafe for OperationPlan
impl !Sync for OperationPlan
impl !UnwindSafe for OperationPlan
impl Freeze for OperationPlan
impl Send for OperationPlan
impl Unpin for OperationPlan
impl UnsafeUnpin for OperationPlan
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