pub struct Queue<'a, A, S> { /* private fields */ }
Expand description
Wraps a record and gives it batch queue functionality.
Examples
let mut string = String::new();
let mut record = Record::new();
let mut queue = record.queue();
queue.apply(Push('a'));
queue.apply(Push('b'));
queue.apply(Push('c'));
assert_eq!(string, "");
queue.commit(&mut string);
assert_eq!(string, "abc");
Implementations§
source§impl<A, S> Queue<'_, A, S>
impl<A, S> Queue<'_, A, S>
sourcepub fn checkpoint(&mut self) -> Checkpoint<'_, A, S>
pub fn checkpoint(&mut self) -> Checkpoint<'_, A, S>
Returns a checkpoint.