Trait concread::internals::lincowcell::LinCowCellCapable[][src]

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[src]

Create the first reader snapshot for a new instance.

fn create_writer(&self) -> U[src]

Create a writer that may be rolled back.

fn pre_commit(&mut self, new: U, prev: &R) -> R[src]

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.

Implementors