[−][src]Struct actix_sled_cache::Cache
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]
V: Clone + Send + 'static,
E: Clone + Encoding<HashSet<IVec>> + Encoding<DateTime<Utc>> + Send + 'static,
F: Clone + Encoding<V> + Send + 'static,
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]
V: Clone + Send + 'static,
E: Clone + Encoding<HashSet<IVec>> + Encoding<DateTime<Utc>> + Send + 'static,
F: Clone + Encoding<V> + Send + 'static,
type Context = Context<Self>
Actor execution context type
fn started(&mut self, ctx: &mut Self::Context)
[src]
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
[src]
fn stopped(&mut self, ctx: &mut Self::Context)
[src]
fn start(self) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
[src]
Self: Actor<Context = Context<Self>>,
fn start_default() -> Addr<Self> where
Self: Actor<Context = Context<Self>> + Default,
[src]
Self: Actor<Context = Context<Self>> + Default,
fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self> where
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
Self: Actor<Context = Context<Self>>,
[src]
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
Self: Actor<Context = Context<Self>>,
fn create<F>(f: F) -> Addr<Self> where
F: FnOnce(&mut Context<Self>) -> Self + 'static,
Self: Actor<Context = Context<Self>>,
[src]
F: FnOnce(&mut Context<Self>) -> Self + 'static,
Self: Actor<Context = Context<Self>>,
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]
V: Clone + Send + 'static,
E: Clone + Encoding<HashSet<IVec>> + Encoding<DateTime<Utc>> + Send + 'static,
F: Clone + Encoding<V> + Send + 'static,
Auto Trait Implementations
impl<V, E, F> Send for Cache<V, E, F> where
E: Send,
F: Send,
V: Send,
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,
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]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,