Struct lfan::TTLCache[][src]

pub struct TTLCache<K, V, IP, EP> where
    K: Hash + Eq,
    IP: Default + InsertionPolicy<K>,
    EP: Default + EvictionPolicy<K>, 
{ /* fields omitted */ }

Implementations

impl<K, V, IP, EP> TTLCache<K, V, IP, EP> where
    K: Hash + Eq + Debug,
    IP: Default + InsertionPolicy<K>,
    EP: Default + EvictionPolicy<K>, 
[src]

pub fn new(maximum_size: usize, ttl: Duration) -> Self[src]

Trait Implementations

impl<K: Default, V: Default, IP: Default, EP: Default> Default for TTLCache<K, V, IP, EP> where
    K: Hash + Eq,
    IP: Default + InsertionPolicy<K>,
    EP: Default + EvictionPolicy<K>, 
[src]

Auto Trait Implementations

impl<K, V, IP, EP> RefUnwindSafe for TTLCache<K, V, IP, EP> where
    EP: RefUnwindSafe,
    IP: RefUnwindSafe,
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V, IP, EP> Send for TTLCache<K, V, IP, EP> where
    EP: Send,
    IP: Send,
    K: Send,
    V: Send

impl<K, V, IP, EP> Sync for TTLCache<K, V, IP, EP> where
    EP: Sync,
    IP: Sync,
    K: Sync,
    V: Sync

impl<K, V, IP, EP> Unpin for TTLCache<K, V, IP, EP> where
    EP: Unpin,
    IP: Unpin,
    K: Unpin,
    V: Unpin

impl<K, V, IP, EP> UnwindSafe for TTLCache<K, V, IP, EP> where
    EP: UnwindSafe,
    IP: UnwindSafe,
    K: UnwindSafe,
    V: 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, 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.