Trait fixity::core::cache::CacheRead[][src]

pub trait CacheRead: Sync {
    type OwnedRef: OwnedRef + Send;
    #[must_use]
    fn read_unstructured<'life0, 'async_trait, A, W>(
        &'life0 self,
        addr: A,
        w: W
    ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
    where
        A: AsRef<Addr> + Into<Addr> + Send,
        W: AsyncWrite + Unpin + Send,
        A: 'async_trait,
        W: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn read_structured<'life0, 'async_trait, A>(
        &'life0 self,
        addr: A
    ) -> Pin<Box<dyn Future<Output = Result<Self::OwnedRef, Error>> + Send + 'async_trait>>
    where
        A: AsRef<Addr> + Into<Addr> + Send,
        A: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
; }

Associated Types

type OwnedRef: OwnedRef + Send[src]

The structured data that the cache can borrow and return in [CacheRead::read_struct].

This is an associated type to allow implementers to define borrowed and alternate versions of the Structured data type. Generally this type should reflect Structured, but doesn’t have to be identical.

Loading content...

Required methods

#[must_use]
fn read_unstructured<'life0, 'async_trait, A, W>(
    &'life0 self,
    addr: A,
    w: W
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
    A: AsRef<Addr> + Into<Addr> + Send,
    W: AsyncWrite + Unpin + Send,
    A: 'async_trait,
    W: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn read_structured<'life0, 'async_trait, A>(
    &'life0 self,
    addr: A
) -> Pin<Box<dyn Future<Output = Result<Self::OwnedRef, Error>> + Send + 'async_trait>> where
    A: AsRef<Addr> + Into<Addr> + Send,
    A: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl<S> CacheRead for DeserCache<S> where
    S: StorageRead + Send
[src]

type OwnedRef = Arc<Object>

Loading content...