[][src]Trait sharded::ShardLock

pub trait ShardLock<K: Hash, V, U, L> where
    V: ExtractShardKey<K>,
    U: Collection<K, V>,
    L: Lock<U>, 
{ fn shards<'a>(&'a self) -> &'a [L];
fn write(&self, k: &K) -> L::WriteGuard;
fn read(&self, k: &K) -> L::ReadGuard; }

Required methods

fn shards<'a>(&'a self) -> &'a [L]

fn write(&self, k: &K) -> L::WriteGuard

fn read(&self, k: &K) -> L::ReadGuard

Loading content...

Implementors

impl<K: Hash, V, U, L> ShardLock<K, V, U, L> for Shard<L> where
    V: ExtractShardKey<K>,
    U: Collection<K, V>,
    L: Lock<U>, 
[src]

Loading content...