[−][src]Struct ev_slotmap::ReadHandleFactory
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.
Implementations
impl<K, P, V> ReadHandleFactory<K, P, V> where
K: Key<P>,
[src]
K: Key<P>,
pub fn handle(&self) -> ReadHandle<K, P, V>
[src]
Produce a new ReadHandle
to the same map as this factory was originally produced from.
Trait Implementations
impl<K, P, V> Clone for ReadHandleFactory<K, P, V> where
K: Key<P>,
[src]
K: Key<P>,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<K, P, V> Debug for ReadHandleFactory<K, P, V> where
K: Key<P>,
[src]
K: Key<P>,
Auto Trait Implementations
impl<K, P, V> RefUnwindSafe for ReadHandleFactory<K, P, V> where
K: RefUnwindSafe,
P: RefUnwindSafe,
K: RefUnwindSafe,
P: RefUnwindSafe,
impl<K, P, V> Send for ReadHandleFactory<K, P, V> where
K: Send,
P: Send,
K: Send,
P: Send,
impl<K, P, V> Sync for ReadHandleFactory<K, P, V> where
K: Sync,
P: Sync,
K: Sync,
P: Sync,
impl<K, P, V> Unpin for ReadHandleFactory<K, P, V> where
K: Unpin,
P: Unpin,
K: Unpin,
P: Unpin,
impl<K, P, V> UnwindSafe for ReadHandleFactory<K, P, V> where
K: UnwindSafe,
P: UnwindSafe,
K: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,