pub struct ContinueToParams {
pub slot: u64,
pub batch_index: Option<u32>,
}Expand description
The params of continueTo: execute up to a point, then pause there.
The session executes through slot, or with batch_index, up to just before that batch of
it. It then sends paused (PausedEvent) and readyForContinue; answer only the
readyForContinue.
slotmust be after the last executed slot. Otherwise the server sends anBacktestError::InvalidRequesterror and the session stays where it is.slotmust have a block. A skipped slot has none, and the session does not stop at it: it runs on to the end of the range.- To run transactions just before slot
n, pause atn - 1and send them with the nextcontinue, or schedule abeforeSlotScheduledActionof kindActionKind::Send.
Fields§
§slot: u64The slot to pause in, or at the end of when batch_index is None.
batch_index: Option<u32>Batch within the target slot at which to pause, exclusive — the
session halts immediately before batch n executes, so no
transaction in that batch has been applied yet. None runs the
whole slot, pausing at the block boundary. While paused, RPC reads
observe partial state up through batch n - 1.
Trait Implementations§
Source§impl Clone for ContinueToParams
impl Clone for ContinueToParams
Source§impl Debug for ContinueToParams
impl Debug for ContinueToParams
Source§impl<'de> Deserialize<'de> for ContinueToParams
impl<'de> Deserialize<'de> for ContinueToParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for ContinueToParams
impl Freeze for ContinueToParams
impl Move for ContinueToParams
impl RefUnwindSafe for ContinueToParams
impl Send for ContinueToParams
impl Sync for ContinueToParams
impl Unpin for ContinueToParams
impl UnsafeUnpin for ContinueToParams
impl UnwindSafe for ContinueToParams
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