[][src]Struct casbin::DefaultCache

pub struct DefaultCache<K, V> where
    K: Eq + Hash + Send + Sync + 'static,
    V: Send + Sync + 'static, 
{ pub ttl: Duration, // some fields omitted }

Fields

ttl: Duration

Methods

impl<K, V> DefaultCache<K, V> where
    K: Eq + Hash + Send + Sync + 'static,
    V: Send + Sync + 'static, 
[src]

pub fn new(cap: usize) -> DefaultCache<K, V>[src]

Trait Implementations

impl<K, V> Cache<K, V> for DefaultCache<K, V> where
    K: Eq + Hash + Send + Sync + 'static,
    V: Send + Sync + 'static, 
[src]

Auto Trait Implementations

impl<K, V> RefUnwindSafe for DefaultCache<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

impl<K, V> Send for DefaultCache<K, V>

impl<K, V> Sync for DefaultCache<K, V>

impl<K, V> Unpin for DefaultCache<K, V>

impl<K, V> UnwindSafe for DefaultCache<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

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.