pub(super) struct RawRecordReverseScanStateMachine {
state_machine_state: RawRecordReverseScanStateMachineState,
state_machine_data: Option<RawRecordReverseScanStateMachineStateData>,
}
Expand description
A state machine that implements reverse scan and returns values of
of type RawRecord
.
See sismic/raw_record_reverse_scan.yaml
for the design of the
state machine.
Fields§
§state_machine_state: RawRecordReverseScanStateMachineState
§state_machine_data: Option<RawRecordReverseScanStateMachineStateData>
Implementations§
source§impl RawRecordReverseScanStateMachine
impl RawRecordReverseScanStateMachine
sourcepub(super) async fn next(
&mut self,
key_value_cursor: &mut KeyValueCursor,
primary_key_schema: &RawRecordPrimaryKeySchema,
values_limit: usize
) -> Option<CursorResult<RawRecord>>
pub(super) async fn next( &mut self, key_value_cursor: &mut KeyValueCursor, primary_key_schema: &RawRecordPrimaryKeySchema, values_limit: usize ) -> Option<CursorResult<RawRecord>>
If needed, perform the action (side effect) and state
transition. Return an Option
value or None
in case we need
to further drive the loop.
fn step_once_with_event(&mut self, event: RawRecordReverseScanStateMachineEvent)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for RawRecordReverseScanStateMachine
impl Send for RawRecordReverseScanStateMachine
impl Sync for RawRecordReverseScanStateMachine
impl Unpin for RawRecordReverseScanStateMachine
impl UnwindSafe for RawRecordReverseScanStateMachine
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