Skip to main content

ProjectionCursor

Trait ProjectionCursor 

Source
pub trait ProjectionCursor {
    // Required methods
    fn get_cursor(&self) -> Value;
    fn set_cursor(&mut self, v: &Value);
}
Expand description

Trait for types that track their cursor position in the event stream.

This trait is typically derived using the #[evento::projection] macro.

Required Methods§

Source

fn get_cursor(&self) -> Value

Returns the current cursor position.

Source

fn set_cursor(&mut self, v: &Value)

Sets the cursor position.

Implementors§