[][src]Struct shared_expiry_get::RemoteStore

pub struct RemoteStore<T: Expiry + Clone + Sync + Send + 'static, P: Provider<T> + 'static> { /* fields omitted */ }

A remote store wrapping an updated provider (impl Provider) and remote data type (impl Expiry).

Implementations

impl<T: Expiry + Clone + Sync + Send + 'static, P: Provider<T> + Sync + Send + 'static> RemoteStore<T, P>[src]

pub fn new(p: P) -> Self[src]

Wrap a Provider.

pub fn get(&self) -> ExpiryFut<T>[src]

Retrieve the remote data implementing Expiry. This will either return cached data or retrieve new data via the Provider.

Trait Implementations

impl<T: Expiry + Clone + Sync + Send + 'static, P: Provider<T> + 'static> Clone for RemoteStore<T, P>[src]

Auto Trait Implementations

impl<T, P> RefUnwindSafe for RemoteStore<T, P> where
    P: RefUnwindSafe
[src]

impl<T, P> Send for RemoteStore<T, P> where
    P: Send + Sync
[src]

impl<T, P> Sync for RemoteStore<T, P> where
    P: Send + Sync
[src]

impl<T, P> Unpin for RemoteStore<T, P>[src]

impl<T, P> UnwindSafe for RemoteStore<T, P> where
    P: RefUnwindSafe
[src]

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.