[src]

Struct workcache::Context

pub struct Context {
    db: Arc<RWLock<Database>>,
    // some fields omitted
}

Fields

db

Methods

impl Context

fn new(db: Arc<RWLock<Database>>, cfg: Arc<Object>) -> Context

fn new_with_freshness(db: Arc<RWLock<Database>>, cfg: Arc<Object>, freshness: Arc<FreshnessMap>) -> Context

fn prep<'a>(&'a self, fn_name: &'a str) -> Prep<'a>

fn with_prep<'a, T>(&'a self, fn_name: &'a str, blk: |p: &mut Prep| -> T) -> T

Trait Implementations

Derived Implementations

impl Clone for Context

fn clone(&self) -> Context