Trait concread::internals::lincowcell::LinCowCellCapable
source · [−]pub trait LinCowCellCapable<R, U> {
fn create_reader(&self) -> R;
fn create_writer(&self) -> U;
fn pre_commit(&mut self, new: U, prev: &R) -> R;
}
Expand description
Do not implement this. You don’t need this negativity in your life.
Required Methods
fn create_reader(&self) -> R
fn create_reader(&self) -> R
Create the first reader snapshot for a new instance.
fn create_writer(&self) -> U
fn create_writer(&self) -> U
Create a writer that may be rolled back.
fn pre_commit(&mut self, new: U, prev: &R) -> R
fn pre_commit(&mut self, new: U, prev: &R) -> R
Given the current active reader, and the writer to commit, update our main structure as mut self, and our previously linear generations based on what was updated.