[][src]Struct arc_swap::cache::MapCache

pub struct MapCache<A, T, F> { /* fields omitted */ }

An implementation of a cache with a projection into the accessed value.

This is the implementation structure for Cache::map. It can't be created directly and it should be used through the Access trait.

Trait Implementations

impl<A, T, S, F, U> Access<U> for MapCache<A, T, F> where
    A: Deref<Target = ArcSwapAny<T, S>>,
    T: RefCnt,
    S: LockStorage,
    F: FnMut(&T) -> &U, 
[src]

impl<A: Clone, T: Clone, F: Clone> Clone for MapCache<A, T, F>[src]

impl<A: Debug, T: Debug, F: Debug> Debug for MapCache<A, T, F>[src]

Auto Trait Implementations

impl<A, T, F> RefUnwindSafe for MapCache<A, T, F> where
    A: RefUnwindSafe,
    F: RefUnwindSafe,
    T: RefUnwindSafe

impl<A, T, F> Send for MapCache<A, T, F> where
    A: Send,
    F: Send,
    T: Send

impl<A, T, F> Sync for MapCache<A, T, F> where
    A: Sync,
    F: Sync,
    T: Sync

impl<A, T, F> Unpin for MapCache<A, T, F> where
    A: Unpin,
    F: Unpin,
    T: Unpin

impl<A, T, F> UnwindSafe for MapCache<A, T, F> where
    A: UnwindSafe,
    F: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.