Trait fixity::core::storage::StorageWrite[][src]

pub trait StorageWrite: Sync {
    #[must_use]
    fn write<'life0, 'async_trait, A, R>(
        &'life0 self,
        addr: A,
        r: R
    ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
    where
        A: AsRef<Addr> + 'static + Send,
        R: AsyncRead + Unpin + Send,
        A: 'async_trait,
        R: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
; #[must_use] fn write_string<'life0, 'async_trait, A>(
        &'life0 self,
        addr: A,
        s: String
    ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
    where
        A: AsRef<Addr> + 'static + Send,
        A: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }

Required methods

#[must_use]
fn write<'life0, 'async_trait, A, R>(
    &'life0 self,
    addr: A,
    r: R
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>> where
    A: AsRef<Addr> + 'static + Send,
    R: AsyncRead + Unpin + Send,
    A: 'async_trait,
    R: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Provided methods

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

A helper to write the provided String into storage.

Loading content...

Implementations on Foreign Types

impl StorageWrite for ()[src]

Loading content...

Implementors

impl StorageWrite for Fs[src]

impl StorageWrite for Memory[src]

Loading content...