[][src]Struct actix_sled_cache::Cache

pub struct Cache<V, E, F> { /* fields omitted */ }

A cache backed by Sled and Actix, storing data via the Encoding trait from sled_extensions

Methods

impl<V, E, F> Cache<V, E, F> where
    V: Clone + Send + 'static,
    E: Clone + Encoding<HashSet<IVec>> + Encoding<DateTime<Utc>> + Send + 'static,
    F: Clone + Encoding<V> + Send + 'static, 
[src]

pub fn tree(&self) -> Tree<V, E, F>[src]

Access the tree used for storage

pub fn builder(db: Db, name: &str) -> CacheBuilder<V, E, F>[src]

Start building a new cache

Trait Implementations

impl<V, E, F> Actor for Cache<V, E, F> where
    V: Clone + Send + 'static,
    E: Clone + Encoding<HashSet<IVec>> + Encoding<DateTime<Utc>> + Send + 'static,
    F: Clone + Encoding<V> + Send + 'static, 
[src]

type Context = Context<Self>

Actor execution context type

impl<V, E, F> Handler<Subscribe> for Cache<V, E, F> where
    V: Clone + Send + 'static,
    E: Clone + Encoding<HashSet<IVec>> + Encoding<DateTime<Utc>> + Send + 'static,
    F: Clone + Encoding<V> + Send + 'static, 
[src]

type Result = ()

The type of value that this handler will return.

Auto Trait Implementations

impl<V, E, F> Send for Cache<V, E, F> where
    E: Send,
    F: Send,
    V: Send

impl<V, E, F> !Sync for Cache<V, E, F>

impl<V, E, F> Unpin for Cache<V, E, F> where
    E: Unpin,
    F: Unpin,
    V: Unpin

impl<V, E, F> !UnwindSafe for Cache<V, E, F>

impl<V, E, F> !RefUnwindSafe for Cache<V, E, F>

Blanket Implementations

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,