pub trait Positioner<Item> {
type Position: Clone + Ord;
// Required methods
fn position(&self) -> Self::Position;
fn update(&mut self, item: &Item);
}
Expand description
Trait for tracking the current position of a Stream
.
pub trait Positioner<Item> {
type Position: Clone + Ord;
// Required methods
fn position(&self) -> Self::Position;
fn update(&mut self, item: &Item);
}
Trait for tracking the current position of a Stream
.