[][src]Struct evmap::ReadHandleFactory

pub struct ReadHandleFactory<K, V, M = (), S = RandomState> where
    K: Eq + Hash,
    S: BuildHasher
{ /* fields omitted */ }

A type that is both Sync and Send and lets you produce new ReadHandle instances.

This serves as a handy way to distribute read handles across many threads without requiring additional external locking to synchronize access to the non-Sync ReadHandle type. Note that this internally takes a lock whenever you call ReadHandleFactory::handle, so you should not expect producing new handles rapidly to scale well.

Methods

impl<K, V, M, S> ReadHandleFactory<K, V, M, S> where
    K: Eq + Hash,
    S: BuildHasher
[src]

pub fn handle(&self) -> ReadHandle<K, V, M, S>[src]

Produce a new ReadHandle to the same map as this factory was originally produced from.

Trait Implementations

impl<K, V, M, S> Clone for ReadHandleFactory<K, V, M, S> where
    K: Eq + Hash,
    S: BuildHasher
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<K, V, M, S> Send for ReadHandleFactory<K, V, M, S>

impl<K, V, M, S> Sync for ReadHandleFactory<K, V, M, S>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]